mirror of https://github.com/aristocratos/bashtop
Fix color theme numbering
parent
fe6a028641
commit
41f40b5938
3
bashtop
3
bashtop
|
@ -794,8 +794,7 @@ get_themes() {
|
||||||
for file in "${theme_dir}"/*.theme; do
|
for file in "${theme_dir}"/*.theme; do
|
||||||
file="${file##*/}"
|
file="${file##*/}"
|
||||||
if [[ ${file} != "*.theme" ]]; then themes+=("${file%.theme}"); fi
|
if [[ ${file} != "*.theme" ]]; then themes+=("${file%.theme}"); fi
|
||||||
if [[ ${themes[-1]} == "${color_theme}" ]]; then theme_int=$i; fi
|
if [[ ${themes[-1]} == "${color_theme}" ]]; then theme_int=${#themes[@]}-1; fi
|
||||||
((i++))
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue