X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=functions.sh;h=28877c5a1849396ccfe7c09554237795f92581e8;hb=5bd6d3387ad27a739b4b688889816ff46a259b2c;hp=4b3013d1ca07333c32589bac60d16adfc1c768d5;hpb=45351df2bc9832d4ce2f9ee6a2b19370236e89a8;p=carnet-tools-cn.git diff --git a/functions.sh b/functions.sh index 4b3013d..28877c5 100644 --- a/functions.sh +++ b/functions.sh @@ -173,11 +173,13 @@ cp_backup_conffile() { did=1 fi fi - - if [ "$check" -a "$did" ]; then - return 0 - else + + [ -z "$check" ] && return 0 + + if [ "$check" -a ! "$did" ]; then return 3 + else + return 0 fi }