mirror of
https://gitlab.com/jschx/ufetch.git
synced 2026-10-21 11:30:07 +00:00
Fix uptime for Busybox distros
This commit is contained in:
1 parent
d753e48db3
commit
4cb2fc110f
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
host="$(hostname)"
|
host="$(hostname)"
|
||||||
os='Alpine Linux'
|
os='Alpine Linux'
|
||||||
kernel="$(uname -sr)"
|
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)"
|
packages="$(apk info | wc -l)"
|
||||||
shell="$(basename ${SHELL})"
|
shell="$(basename ${SHELL})"
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
host="$(hostname)"
|
host="$(hostname)"
|
||||||
os='Linux' # I'd just like to interject for a moment...
|
os='Linux' # I'd just like to interject for a moment...
|
||||||
kernel="$(uname -sr)"
|
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})"
|
shell="$(basename ${SHELL})"
|
||||||
|
|
||||||
if [ -z "${WM}" ]; then
|
if [ -z "${WM}" ]; then
|
||||||
|
|||||||
Reference in new issue
Block a user