Commit 2212cab6 authored by Muhammad Herdiansyah's avatar Muhammad Herdiansyah

Disk [AIX df]: Add version detection

parent ea1f853c
...@@ -1807,7 +1807,7 @@ get_disk() { ...@@ -1807,7 +1807,7 @@ get_disk() {
df_version="$(df --version 2>&1)" df_version="$(df --version 2>&1)"
case "$df_version" in case "$df_version" in
*"blocks"*) err "Your version of df cannot be used due to the non-standard flags" ; return ;; # Haiku *"blocks"*) err "Your version of df cannot be used due to the non-standard flags" ; return ;; # Haiku
# AIX unknown *"recognized flag"*) df_flags=(-P -g) ;; # AIX, untested
# IRIX unknown # IRIX unknown
*) df_flags=(-P -h) ;; *) df_flags=(-P -h) ;;
esac esac
......
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