summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-05-06 18:25:18 -0400
committerAaron Griffin <aaronmgriffin@gmail.com>2008-05-06 18:25:18 -0400
commit26b2f70e1d82f2a0e9a2127604a5bf610d37f404 (patch)
tree463b014e78a406801be17c8d4bdcd1a2fa04d937
parent1bdf5e2109a24997ec5f786d12486718492df0ef (diff)
More absolute pathing
Also, added a pretty comment. It's so pretty! Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-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