fix: stuff

This commit is contained in:
Strix 2023-10-14 22:38:11 +02:00
parent c2eedb304e
commit 2d17da4a75
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774

View file

@ -7,7 +7,7 @@ osreleaseprop() {
elevated() { elevated() {
s=${SUDO:-sudo} s=${SUDO:-sudo}
if [ ! "$s" = "none" ]; then if [ ! "$s" = "none" ]; then
if ! which $s &> /dev/null; then if ! command -v $s &> /dev/null; then
echo "command \"$s\" not found" echo "command \"$s\" not found"
exit 1 exit 1
fi fi