summaryrefslogtreecommitdiff
path: root/db-update
diff options
context:
space:
mode:
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update5
1 files changed, 3 insertions, 2 deletions
diff --git a/db-update b/db-update
index c3b4593..1134b2d 100755
--- a/db-update
+++ b/db-update
@@ -179,8 +179,9 @@ else
echo "No packages to delete"
fi
-if [ $(ls "$WORKDIR/build/" 2>/dev/null | wc -l) != 0 ]; then
- cp -r "$WORKDIR/build/"* "$ftppath"
+# if non empty, move all build dirs
+if [ $(/bin/ls "$WORKDIR/build/" 2>/dev/null | wc -l) != 0 ]; then
+ /bin/cp -r "$WORKDIR/build/"* "$ftppath"
fi
if [ "$updatelists" ]; then