Commit fd8f5145 authored by Muhammad Herdiansyah's avatar Muhammad Herdiansyah

Disk [AIX df]: Changed df versioning detection

parent 4364e67d
...@@ -1818,7 +1818,7 @@ get_disk() { ...@@ -1818,7 +1818,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
*"recognized flag"*) df_flags=(-P -g) ;; # AIX, untested *"IMitv"*) df_flags=(-P -g) ;; # AIX
*"befhikm"*) df_flags=(-P -k) ;; # IRIX *"befhikm"*) df_flags=(-P -k) ;; # IRIX
*) 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