]> git.armaanb.net Git - bin.git/commitdiff
fix uptime
authorArmaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me>
Sat, 14 Nov 2020 16:55:38 +0000 (11:55 -0500)
committerArmaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me>
Sat, 14 Nov 2020 16:55:38 +0000 (11:55 -0500)
README.md
ufetch

index 36e299e095be1ca1b9939c532e8c8d0631d91f75..aaf6b9663224969e97ea5e2b57fdc007b021e064 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
 # Shell scripts
-Some linux shell scripts that I use. Many of them are not mine, and will be marked accordingly within the script
+Some shell scripts that make my life a bit easier. Most of them are inspired by other people's work and are marked accordingly in the script.
 
-Compatability is not a priority as long as they run on a modern linux system
+WTFPLv2 Armaan Bhojwani 2020, see the COPYING file for more information
diff --git a/ufetch b/ufetch
index dff7d01406e60bb3adec8371624a9fa8491b5476..eb91b8be46ef1265edbd50af98d1d2d60403d220 100755 (executable)
--- a/ufetch
+++ b/ufetch
@@ -5,7 +5,7 @@
 host="$(hostname)"
 os='Debian unstable'
 kernel="$(uname -sr)"
-uptime="$(uptime | cut -d ':' -f 1 | tail -c +2)$(uptime | echo "scale=1; $(cut -d ':' -f 2)/60" | bc ) hours"
+uptime="$(uptime -p | cut -d ',' -f 1-2 | tail -c +4)"
 shell="zsh"
 ui="KDE Plasma"