Uses literal heredoc when compiling the module loading script to reduce escapings

This commit is contained in:
Bruno Tavares 2015-09-26 00:46:57 -03:00
parent 181f40fabb
commit c3fcd798c3

View File

@ -1,16 +1,16 @@
#!/bin/bash -e
module_loading=$(cat <<MODULE
current_dir=\$(pwd)
module_loading=$(cat <<\MODULE
current_dir=$(pwd)
cd modules/kickstart
source install.sh
cd "\$current_dir"
cd "$current_dir"
for module in modules/*; do
if [ ! "\$module" = module/kickstart ]; then
cd "\$module"
if [ ! "$module" = module/kickstart ]; then
cd "$module"
source install.sh
cd "\$current_dir"
cd "$current_dir"
fi
done
MODULE