Battery printing bug in zsh part (special character not escaped)

This commit is contained in:
Luc Didry 2012-08-12 10:38:52 +02:00
parent c3ba849ced
commit c8f01e68a3

View File

@ -654,8 +654,11 @@ __battery_color()
ret="${ret}${CRIT_RED}" ret="${ret}${CRIT_RED}"
fi fi
echo -ne "${ret}${bat}%${NO_COL}" if [[ "$WORKING_SHELL" == "bash" ]]; then
fi echo -ne "${ret}${bat}%${NO_COL}"
elif [[ "$WORKING_SHELL" == "zsh" ]]; then
echo -ne "${ret}${bat}%%${NO_COL}"
fi
} }