remove type command
The posix equivalent of the type command is "command -v", so now we use that. Thanks to Jonathan Callen <jcallen@gentoo.org> for informing me wrt the fix.
This commit is contained in:
@ -19,7 +19,7 @@ elif [ -f /proc/pmu/info ]; then
|
||||
"AC Power"*": 0") exit 128;;
|
||||
esac
|
||||
done
|
||||
elif type envstat >/dev/null 2>&1; then
|
||||
elif command -v envstat >/dev/null 2>&1; then
|
||||
# NetBSD has envstat
|
||||
envstat -d acpiacad0 2>/dev/null | while read line; do
|
||||
case "$line" in
|
||||
|
Reference in New Issue
Block a user