Set nocasematch once instead of having it throughout the script
This commit is contained in:
parent
5d5bf3a068
commit
a55ac54e86
6
fetch
6
fetch
|
@ -369,6 +369,10 @@ config_file="$HOME/.config/fetch/config"
|
||||||
# Gather Info {{{
|
# Gather Info {{{
|
||||||
|
|
||||||
|
|
||||||
|
# Set no case match
|
||||||
|
shopt -s nocasematch
|
||||||
|
|
||||||
|
|
||||||
# Operating System {{{
|
# Operating System {{{
|
||||||
|
|
||||||
case "$(uname)" in
|
case "$(uname)" in
|
||||||
|
@ -867,7 +871,6 @@ getgpu () {
|
||||||
gpu=${gpu/* 3D controller: }
|
gpu=${gpu/* 3D controller: }
|
||||||
gpu=${gpu/(rev*)}
|
gpu=${gpu/(rev*)}
|
||||||
|
|
||||||
shopt -s nocasematch
|
|
||||||
case "$gpu" in
|
case "$gpu" in
|
||||||
intel*)
|
intel*)
|
||||||
gpu=${gpu/Intel Corporation }
|
gpu=${gpu/Intel Corporation }
|
||||||
|
@ -1580,7 +1583,6 @@ getwallpaper () {
|
||||||
|
|
||||||
getascii () {
|
getascii () {
|
||||||
# Change color of logo based on distro
|
# Change color of logo based on distro
|
||||||
shopt -s nocasematch
|
|
||||||
case "$ascii_distro" in
|
case "$ascii_distro" in
|
||||||
"Arch Linux"* | "Antergos"*)
|
"Arch Linux"* | "Antergos"*)
|
||||||
ascii_colors 6 4
|
ascii_colors 6 4
|
||||||
|
|
Reference in New Issue