From 941a96208c54b265683b66681811b5aabfda5833 Mon Sep 17 00:00:00 2001 From: Lukas Macura Date: Tue, 19 Apr 2016 12:37:37 +0200 Subject: [PATCH] One more check in installation --- lib/ctrl.lib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ctrl.lib.sh b/lib/ctrl.lib.sh index 77cf2ef..275bd20 100644 --- a/lib/ctrl.lib.sh +++ b/lib/ctrl.lib.sh @@ -115,7 +115,7 @@ zaf_ctrl_sudo() { pdir="$3" plugin=$1 - ! [ -d "$ZAF_SUDOERSD" ] && zaf_wrn "$ZAF_SUDOERSD nonexistent! Skipping sudo install!" + ! [ -d "$ZAF_SUDOERSD" ] && { zaf_wrn "$ZAF_SUDOERSD nonexistent! Skipping sudo install!"; return 1; } zaf_dbg "Installing sudoers entry $ZAF_SUDOERSD/zaf_$plugin" sudo=$(zaf_ctrl_get_global_option $2 "Sudo" | zaf_far '{PLUGINDIR}' "${plugindir}") [ -z "$sudo" ] && return # Nothing to install @@ -143,7 +143,7 @@ zaf_ctrl_cron() { pdir="$3" plugin=$1 - ! [ -d "$ZAF_CROND" ] && zaf_wrn "$ZAF_CROND nonexistent! Skipping cron install!" + ! [ -d "$ZAF_CROND" ] && { zaf_wrn "$ZAF_CROND nonexistent! Skipping cron install!"; return 1; } zaf_dbg "Installing cron entry $ZAF_CROND/zaf_$plugin" cron=$(zaf_ctrl_get_global_option $2 "Cron") [ -z "$cron" ] && return # Nothing to install