disk: change Haiku's df detection
'blocks' keyword is also present in busybox' df. Busybox' df also has -P and -h flags, so it can be detected as normal df. 'Tracker' keyword seems to be exclusive to Haiku's df.
This commit is contained in:
parent
4fd2287582
commit
a1e6843884
2
neofetch
2
neofetch
|
@ -2032,7 +2032,7 @@ get_disk() {
|
||||||
# Get "df" version.
|
# Get "df" version.
|
||||||
df_version="$(df --version 2>&1)"
|
df_version="$(df --version 2>&1)"
|
||||||
case "$df_version" in
|
case "$df_version" in
|
||||||
*"blocks"*) # Haiku
|
*"Tracker"*) # Haiku
|
||||||
err "Your version of df cannot be used due to the non-standard flags"
|
err "Your version of df cannot be used due to the non-standard flags"
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
|
Reference in New Issue