From 1eab206530abbd64b5b18042f07c728822d246ad Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 29 Sep 2013 07:52:56 -0400 Subject: [PATCH] Fix package.sh to update Power and CuraEngine, rather that failing to clone them (in the Debian section). --- package.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/package.sh b/package.sh index abf9fb89..6b4d47b7 100755 --- a/package.sh +++ b/package.sh @@ -138,8 +138,20 @@ fi ############################# if [ "$BUILD_TARGET" = "debian" ]; then - git clone https://github.com/GreatFruitOmsk/Power - git clone https://github.com/Ultimaker/CuraEngine + if [ ! -d "Power" ]; then + git clone https://github.com/GreatFruitOmsk/Power + else + cd Power + git pull + cd .. + fi + if [ ! -d "CuraEngine" ]; then + git clone https://github.com/Ultimaker/CuraEngine + else + cd CuraEngine + git pull + cd .. + fi make -C CuraEngine rm -rf scripts/linux/debian/usr/share/cura mkdir -p scripts/linux/debian/usr/share/cura -- 2.30.2