1
0
mirror of https://github.com/limosek/zaf.git synced 2024-11-21 18:09:06 +01:00

zaf_options are always generated on install, not added

This commit is contained in:
Lukas Macura 2016-04-04 16:58:39 +02:00
parent ee06971e3a
commit 83eae36198

View File

@ -125,7 +125,7 @@ zaf_configure_agent() {
local value local value
zaf_install_dir "$ZAF_AGENT_CONFIGD" zaf_install_dir "$ZAF_AGENT_CONFIGD"
zaf_touch "$ZAF_AGENT_CONFIGD/zaf_options.conf" || zaf_err "Cannot access $ZAF_AGENT_CONFIGD/zaf_options.conf" echo -n >"$ZAF_AGENT_CONFIGD/zaf_options.conf" || zaf_err "Cannot access $ZAF_AGENT_CONFIGD/zaf_options.conf"
for pair in "$@"; do for pair in "$@"; do
echo $pair | grep -q '^Z\_' || continue # Skip non Z_ vars echo $pair | grep -q '^Z\_' || continue # Skip non Z_ vars
option=$(echo $pair|cut -d '=' -f 1|cut -d '_' -f 2) option=$(echo $pair|cut -d '=' -f 1|cut -d '_' -f 2)