[PATCH] custom_scripts: make oob_config_dir available to custom scripts
martin.langhoff at gmail.com
martin.langhoff at gmail.com
Tue May 17 08:10:12 EDT 2011
From: Martin Langhoff <martin at laptop.org>
The oob_config_dir variable is specially useful in making
custom scripts more portable. Make it available at last.
---
(This was intended to be part of the original oob_config_dir
implementation. My apologies.)
---
.../kspost.75.nochroot.custom_scripts.sh | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/custom_scripts/kspost.75.nochroot.custom_scripts.sh b/modules/custom_scripts/kspost.75.nochroot.custom_scripts.sh
index 637c8f3..a9b81a0 100644
--- a/modules/custom_scripts/kspost.75.nochroot.custom_scripts.sh
+++ b/modules/custom_scripts/kspost.75.nochroot.custom_scripts.sh
@@ -9,6 +9,7 @@ for line in $(env); do
[[ "${line:0:34}" == "CFG_custom_scripts__custom_script_" ]] || continue
script=${line#*=}
echo "echo 'Executing custom script $script'"
+ echo "export oob_config_dir=\"$oob_config_dir\""
echo "[ -x \"$script\" ] && \"$script\" || bash \"$script\""
done
IFS=$oIFS
--
1.6.2.5
More information about the Devel
mailing list