Also remove trailing tab characters
This commit is contained in:
parent
5f2047fd0b
commit
ea1d2d2341
1 changed files with 5 additions and 5 deletions
10
neofetch
10
neofetch
|
@ -510,7 +510,7 @@ case "$os" in
|
||||||
x32="32-bit"
|
x32="32-bit"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
distro=${distro//+( )/ }
|
distro=${distro//+([[:space:]])/ }
|
||||||
ascii_distro="$distro"
|
ascii_distro="$distro"
|
||||||
|
|
||||||
getdistro () {
|
getdistro () {
|
||||||
|
@ -627,7 +627,7 @@ getuptime () {
|
||||||
uptime=${uptime# }
|
uptime=${uptime# }
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
uptime=${uptime//+( )/ }
|
uptime=${uptime//+([[:space:]])/ }
|
||||||
}
|
}
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
@ -920,7 +920,7 @@ getcpu () {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Trim whitespace
|
# Trim whitespace
|
||||||
cpu=${cpu//+( )/ }
|
cpu=${cpu//+([[:space:]])/ }
|
||||||
|
|
||||||
# Add CPU info bar
|
# Add CPU info bar
|
||||||
prin "${subtitle}: ${cpu}"
|
prin "${subtitle}: ${cpu}"
|
||||||
|
@ -1070,7 +1070,7 @@ getgpu () {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
gpu=${gpu//+( )/ }
|
gpu=${gpu//+([[:space:]])/ }
|
||||||
gpu="${gpu}${count}"
|
gpu="${gpu}${count}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1719,7 +1719,7 @@ getbirthday () {
|
||||||
|
|
||||||
# Pretty output
|
# Pretty output
|
||||||
[ "$birthday_shorthand" == "off" ] && \
|
[ "$birthday_shorthand" == "off" ] && \
|
||||||
birthday=${date_cmd//+( )/ }
|
birthday=${date_cmd//+([[:space:]])/ }
|
||||||
|
|
||||||
# Toggle showing the time
|
# Toggle showing the time
|
||||||
[ "$birthday_time" == "off" ] && \
|
[ "$birthday_time" == "off" ] && \
|
||||||
|
|
Loading…
Reference in a new issue