Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/modules/custom_scripts/kspost.80.nochroot.custom_scripts.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules/custom_scripts/kspost.80.nochroot.custom_scripts.sh')
-rw-r--r--modules/custom_scripts/kspost.80.nochroot.custom_scripts.sh9
1 files changed, 2 insertions, 7 deletions
diff --git a/modules/custom_scripts/kspost.80.nochroot.custom_scripts.sh b/modules/custom_scripts/kspost.80.nochroot.custom_scripts.sh
index a9b81a0..d5559f6 100644
--- a/modules/custom_scripts/kspost.80.nochroot.custom_scripts.sh
+++ b/modules/custom_scripts/kspost.80.nochroot.custom_scripts.sh
@@ -3,14 +3,9 @@
. $OOB__shlib
-oIFS=$IFS
-IFS=$'\n'
-for line in $(env); do
- [[ "${line:0:34}" == "CFG_custom_scripts__custom_script_" ]] || continue
- script=${line#*=}
+find_option_values scripts custom_scripts custom_script
+for script in "${scripts[@]}"; do
echo "echo 'Executing custom script $script'"
echo "export oob_config_dir=\"$oob_config_dir\""
echo "[ -x \"$script\" ] && \"$script\" || bash \"$script\""
done
-IFS=$oIFS
-