mirror of
https://gitlab.com/jschx/ufetch.git
synced 2026-09-30 21:42:51 +07:00
Remove bashism.
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ KERNEL="$(uname -sr)"
|
||||
UPTIME="$(uptime -p | sed s:"up "::)"
|
||||
PACKAGES="$(pacman -Q | wc -l)"
|
||||
# shell is already defined
|
||||
if [[ -z "$WM" ]]; then
|
||||
if [ -z "$WM" ]; then
|
||||
WM="$(grep -v "^#" "${HOME}/.xinitrc" | tail -n 1 | cut -d " " -f2)"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user