mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 12:09:55 +00:00
Misc: Shellcheck fix
This commit is contained in:
2
neofetch
2
neofetch
@@ -399,7 +399,7 @@ get_uptime() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"AIX" | "IRIX" | "HP-UX")
|
"AIX" | "IRIX" | "HP-UX")
|
||||||
t="$(LC_ALL=POSIX UNIX95= ps -o etime= -p 1)"
|
t="$(LC_ALL=POSIX UNIX95=1 ps -o etime= -p 1)"
|
||||||
d="0" h="0"
|
d="0" h="0"
|
||||||
case "$t" in *"-"*) d="${t%%-*}"; t="${t#*-}";; esac
|
case "$t" in *"-"*) d="${t%%-*}"; t="${t#*-}";; esac
|
||||||
case "$t" in *":"*":"*) h="${t%%:*}"; t="${t#*:}";; esac
|
case "$t" in *":"*":"*) h="${t%%:*}"; t="${t#*:}";; esac
|
||||||
|
|||||||
Reference in New Issue
Block a user