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 #!/bin/bash -e
module_loading=$(cat <<MODULE module_loading=$(cat <<\MODULE
current_dir=\$(pwd) current_dir=$(pwd)
cd modules/kickstart cd modules/kickstart
source install.sh source install.sh
cd "\$current_dir" cd "$current_dir"
for module in modules/*; do for module in modules/*; do
if [ ! "\$module" = module/kickstart ]; then if [ ! "$module" = module/kickstart ]; then
cd "\$module" cd "$module"
source install.sh source install.sh
cd "\$current_dir" cd "$current_dir"
fi fi
done done
MODULE MODULE