getdisk swap '/total/' for 'END'
This commit is contained in:
parent
8b606395d1
commit
7c0863db3d
1 changed files with 1 additions and 1 deletions
2
fetch
2
fetch
|
@ -1015,7 +1015,7 @@ getdisk () {
|
|||
esac
|
||||
|
||||
# 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
|
||||
disk_used=${disk#*:}
|
||||
|
|
Loading…
Reference in a new issue