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