wok-6.x diff boxbackup-client/receipt @ rev 20892
Remove ashism ==
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 26 09:14:07 2019 +0100 (2019-02-26) |
parents | 1067bb7f1e24 |
children | a01ff9505078 |
line diff
1.1 --- a/boxbackup-client/receipt Wed Dec 16 15:49:50 2015 +0100 1.2 +++ b/boxbackup-client/receipt Tue Feb 26 09:14:07 2019 +0100 1.3 @@ -78,12 +78,12 @@ 1.4 rm -rf "$1/$CONF_DIR"/bbackupd* 1.5 1.6 # Delete CONF dir (if empty) 1.7 - if [ $(ls -lA $CONF_DIR | wc -l) -eq 0 ]; then 1.8 + if [ $(ls -lA "$1/$CONF_DIR" | wc -l) -eq 0 ]; then 1.9 echo 1.10 action "Removing $CONF_DIR..." 1.11 - rm -rf $1/$CONF_DIR 1.12 + rm -rf "$1/$CONF_DIR" 1.13 status 1.14 fi 1.15 # Delete PID, sock files 1.16 - rm -f $1/var/run/bbackupd.* 1.17 + rm -f "$1/var/run/bbackupd".* 1.18 }