Quoted all variables, to avoid whitespace truncation.

This commit is contained in:
Archie Hilton (thytom) 2019-10-25 11:42:13 +01:00
parent 8df3820882
commit 304d4863d1

6
bar.sh
View file

@ -40,8 +40,8 @@ get_bar()
{
for module in $MODULES; do
if [[ $INTERNET -eq 0 ]] || [[ $ONLINE_MODULES != *"$module"* ]];then
module_out=$(cat $OUTPUT_CACHE$module | sed 's/\.$//g')
bar=$bar$module_out
module_out="$(cat $OUTPUT_CACHE$module | sed 's/\.$//g')"
bar="$bar$module_out"
fi
done
# Uncomment to remove last separator
@ -59,7 +59,7 @@ run_module()
fi
[[ ! "$out" = "" ]] && [[ ! "$module" = "NULL" ]] && out="$out$SEPARATOR."
echo $out > "$OUTPUT_CACHE$module"
echo "$out" > "$OUTPUT_CACHE$module"
}
run()