Disk [AIX df]: Add version detection
This commit is contained in:
parent
ea1f853c2a
commit
2212cab688
2
neofetch
2
neofetch
|
@ -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
|
||||||
|
|
Reference in New Issue