Commit d738ad6f authored by Dylan Araps's avatar Dylan Araps

Disk: If df fails, abort

parent 49a96948
...@@ -1540,7 +1540,7 @@ get_disk() { ...@@ -1540,7 +1540,7 @@ get_disk() {
type -p df >/dev/null 2>&1 || { err "Disk requires 'df' to function. Install 'df' to get disk info."; return; } type -p df >/dev/null 2>&1 || { err "Disk requires 'df' to function. Install 'df' to get disk info."; return; }
# Get the info for / # Get the info for /
disks=($(df -h /)) disks=($(df -h /)) || { err "Disk: 'df' exited with error code 1"; return; }
# Split the info # Split the info
disk_used="${disks[9]}" disk_used="${disks[9]}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment