From 5bd6d3387ad27a739b4b688889816ff46a259b2c Mon Sep 17 00:00:00 2001 From: Zoran Dzelajlija Date: Fri, 24 Jun 2005 22:39:57 +0000 Subject: [PATCH] r72: cp_backup_conffile je vracao false u slucaju da backup nije bilo potrebno izvrsiti, bez obzira na to je li pozvan kao cp_check_* ili ne. --- changelog.CARNet | 7 +++++++ functions.sh | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/changelog.CARNet b/changelog.CARNet index fe7eb21..5a86208 100644 --- a/changelog.CARNet +++ b/changelog.CARNet @@ -1,3 +1,10 @@ +carnet-tools-cn (2.4.1) sarge; urgency=low + + * cp_backup_conffile je greskom vracao false ako backup nije + bio potreban. + + -- Zoran Dzelajlija Sat, 25 Jun 2005 00:29:32 +0200 + carnet-tools-cn (2.4) testing; urgency=low * Kozmeticke ispravke. 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 } -- 1.7.10.4