mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
getdisk swap '/total/' for 'END'
This commit is contained in:
2
fetch
2
fetch
@@ -1015,7 +1015,7 @@ getdisk () {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Get the disk info
|
# Get the disk info
|
||||||
disk=$(df $df_flags 2>/dev/null | awk '/total/ {print $2 ":" $3 ":" $5}')
|
disk=$(df $df_flags 2>/dev/null | awk 'END{print $2 ":" $3 ":" $5}')
|
||||||
|
|
||||||
# Format the output
|
# Format the output
|
||||||
disk_used=${disk#*:}
|
disk_used=${disk#*:}
|
||||||
|
Reference in New Issue
Block a user