diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-05-06 18:25:18 -0400 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-05-06 18:25:18 -0400 |
commit | 26b2f70e1d82f2a0e9a2127604a5bf610d37f404 (patch) | |
tree | 463b014e78a406801be17c8d4bdcd1a2fa04d937 | |
parent | 1bdf5e2109a24997ec5f786d12486718492df0ef (diff) |
More absolute pathing
Also, added a pretty comment. It's so pretty!
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-x | db-update | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |