diff options
author | Archie Hilton (thytom) <archie.hilton1@gmail.com> | 2019-10-25 11:42:13 +0100 |
---|---|---|
committer | Archie Hilton (thytom) <archie.hilton1@gmail.com> | 2019-10-25 11:42:13 +0100 |
commit | 304d4863d1034ea6fb0d5850fd4a3de6c52693fe (patch) | |
tree | 6018168d6544925d47c1ad0e3574fd33def6f6a1 /bar.sh | |
parent | 8df3820882a8c470190f209888cf2f04c45d5193 (diff) |
Quoted all variables, to avoid whitespace truncation.
Diffstat (limited to 'bar.sh')
-rwxr-xr-x | bar.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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() |