Bug 544420, backupsnip fails when only adding new directories, r=catlee

git-svn-id: svn://10.0.0.236/trunk@259788 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nrthomas%gmail.com
2010-02-22 20:36:46 +00:00
parent 10645eea8b
commit 4d81c9120f

View File

@@ -54,6 +54,13 @@ for d in $changedDirs; do
fi
done
if [ -z "$args" ]; then
echo
echo 'Nothing to backup. There could be something wrong, or you could'
echo 'be creating new directories (eg test snippets for a major update).'
exit 0
fi
pushd $LIVE_SNIPPET_DIR > /dev/null
echo Running time $TAR cfvz $BACKUP_DIR/$backupDirName.tar.gz $args
time $TAR cfvz $BACKUP_DIR/$backupDirName.tar.gz $args