mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-09-19 19:03:05 +00:00
Quoted all variables, to avoid whitespace truncation.
This commit is contained in:
parent
8df3820882
commit
304d4863d1
1 changed files with 3 additions and 3 deletions
6
bar.sh
6
bar.sh
|
@ -40,8 +40,8 @@ get_bar()
|
||||||
{
|
{
|
||||||
for module in $MODULES; do
|
for module in $MODULES; do
|
||||||
if [[ $INTERNET -eq 0 ]] || [[ $ONLINE_MODULES != *"$module"* ]];then
|
if [[ $INTERNET -eq 0 ]] || [[ $ONLINE_MODULES != *"$module"* ]];then
|
||||||
module_out=$(cat $OUTPUT_CACHE$module | sed 's/\.$//g')
|
module_out="$(cat $OUTPUT_CACHE$module | sed 's/\.$//g')"
|
||||||
bar=$bar$module_out
|
bar="$bar$module_out"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
# Uncomment to remove last separator
|
# Uncomment to remove last separator
|
||||||
|
@ -59,7 +59,7 @@ run_module()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ ! "$out" = "" ]] && [[ ! "$module" = "NULL" ]] && out="$out$SEPARATOR."
|
[[ ! "$out" = "" ]] && [[ ! "$module" = "NULL" ]] && out="$out$SEPARATOR."
|
||||||
echo $out > "$OUTPUT_CACHE$module"
|
echo "$out" > "$OUTPUT_CACHE$module"
|
||||||
}
|
}
|
||||||
|
|
||||||
run()
|
run()
|
||||||
|
|
Loading…
Reference in a new issue