diff options
Diffstat (limited to 'db-update')
-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 |