Uses literal heredoc when compiling the module loading script to reduce escapings
This commit is contained in:
parent
181f40fabb
commit
c3fcd798c3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user