X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=carnet-tools-cn.git;a=blobdiff_plain;f=functions.sh;h=28877c5a1849396ccfe7c09554237795f92581e8;hp=4b3013d1ca07333c32589bac60d16adfc1c768d5;hb=78cf4902f1c46307ce7408229c40f67ecc3552ec;hpb=45351df2bc9832d4ce2f9ee6a2b19370236e89a8 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 }