From 30fac6acb8082021811db3a9beafa8ac5b3c7b2f Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 7 Aug 2017 12:34:37 +0800 Subject: [PATCH] make-stable: Gracefully skip directories that do not exist --- scripts/make-stable.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/make-stable.sh b/scripts/make-stable.sh index 2d37124..5ea5dad 100755 --- a/scripts/make-stable.sh +++ b/scripts/make-stable.sh @@ -20,6 +20,12 @@ DIRS="images ipk sdk tools cache-state sources cache conf" for i in $DIRS; do + if [ ! -e $PWD/web-files/$MACHINE/$RELEASE-testing/$i ]; then + echo "Skipping $i, directory doesn't exist" + echo "" + continue + fi + echo "Working on $i" rsync $ARGS --delete -avH \ --link-dest=$PWD/web-files/$MACHINE/$RELEASE-testing/$i \