mirror of
https://github.com/limosek/zaf.git
synced 2024-11-14 06:29:07 +01:00
One more check in installation
This commit is contained in:
parent
b892cb067d
commit
941a96208c
@ -115,7 +115,7 @@ zaf_ctrl_sudo() {
|
|||||||
|
|
||||||
pdir="$3"
|
pdir="$3"
|
||||||
plugin=$1
|
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"
|
zaf_dbg "Installing sudoers entry $ZAF_SUDOERSD/zaf_$plugin"
|
||||||
sudo=$(zaf_ctrl_get_global_option $2 "Sudo" | zaf_far '{PLUGINDIR}' "${plugindir}")
|
sudo=$(zaf_ctrl_get_global_option $2 "Sudo" | zaf_far '{PLUGINDIR}' "${plugindir}")
|
||||||
[ -z "$sudo" ] && return # Nothing to install
|
[ -z "$sudo" ] && return # Nothing to install
|
||||||
@ -143,7 +143,7 @@ zaf_ctrl_cron() {
|
|||||||
|
|
||||||
pdir="$3"
|
pdir="$3"
|
||||||
plugin=$1
|
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"
|
zaf_dbg "Installing cron entry $ZAF_CROND/zaf_$plugin"
|
||||||
cron=$(zaf_ctrl_get_global_option $2 "Cron")
|
cron=$(zaf_ctrl_get_global_option $2 "Cron")
|
||||||
[ -z "$cron" ] && return # Nothing to install
|
[ -z "$cron" ] && return # Nothing to install
|
||||||
|
Loading…
Reference in New Issue
Block a user