mirror of
https://gitlab.com/jschx/ufetch.git
synced 2026-10-14 10:20:04 +00:00
Fix uptime for Busybox distros
This commit is contained in:
1 parent
fbeb1154bf
commit
329cf33923
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -8,7 +8,7 @@
|
||||
host="$(hostname)"
|
||||
os='Alpine Linux'
|
||||
kernel="$(uname -sr)"
|
||||
uptime="$(uptime -p | sed 's/up //')"
|
||||
uptime="$(uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//')"
|
||||
packages="$(apk info | wc -l)"
|
||||
shell="$(basename ${SHELL})"
|
||||
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
host="$(hostname)"
|
||||
os='Linux' # I'd just like to interject for a moment...
|
||||
kernel="$(uname -sr)"
|
||||
uptime="$(uptime -p | sed 's/up //')"
|
||||
uptime="$(uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//')"
|
||||
shell="$(basename ${SHELL})"
|
||||
|
||||
if [ -z "${WM}" ]; then
|
||||
|
||||
Reference in new issue
Block a user