summaryrefslogtreecommitdiffstats
path: root/db-update
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-05-07 00:25:18 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2008-05-07 00:25:18 +0200
commit26b2f70e1d82f2a0e9a2127604a5bf610d37f404 (patch)
tree463b014e78a406801be17c8d4bdcd1a2fa04d937 /db-update
parent1bdf5e2109a24997ec5f786d12486718492df0ef (diff)
downloaddbscripts-26b2f70e1d82f2a0e9a2127604a5bf610d37f404.tar.gz
dbscripts-26b2f70e1d82f2a0e9a2127604a5bf610d37f404.tar.xz
More absolute pathing
Also, added a pretty comment. It's so pretty! Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
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