wok-next diff boxbackup-client/receipt @ rev 20082
Up clementine
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Oct 25 12:19:39 2017 +0200 (2017-10-25) |
parents | 1067bb7f1e24 |
children | e6615350078d |
line diff
1.1 --- a/boxbackup-client/receipt Wed Dec 16 15:49:50 2015 +0100 1.2 +++ b/boxbackup-client/receipt Wed Oct 25 12:19:39 2017 +0200 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 }