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