Fixed issues when progress colors weren't set to 'distro'

This commit is contained in:
Dylan 2016-03-29 23:02:23 +11:00
parent 9d20bb67cd
commit 1c715109fd

View file

@ -2337,14 +2337,19 @@ setcolors () {
info_color="$(color ${colors[5]})" info_color="$(color ${colors[5]})"
fi fi
[ "$progress_color_elapsed" == "distro" ] && \ if [ "$progress_color_elapsed" == "distro" ]; then
progress_color_elapsed="$(color 7)" progress_color_elapsed="$(color 7)"
else
progress_color_elapsed="$(color $progress_color_elapsed)"
fi
if [ "$progress_color_total" == "distro" ]; then if [ "$progress_color_total" == "distro" ]; then
progress_color_total="$c1" progress_color_total="$c1"
case "$1" in case "$1" in
7 | 3 | 6) progress_color_total="$c2" ;; 7 | 3 | 6) progress_color_total="$c2" ;;
esac esac
else
progress_color_total="$(color $progress_color_total)"
fi fi
} }