make-stable: Gracefully skip directories that do not exist

This commit is contained in:
Holger Hans Peter Freyther 2017-08-07 12:34:37 +08:00
parent d413b7be38
commit 30fac6acb8
1 changed files with 6 additions and 0 deletions

View File

@ -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 \