fix: stuff

This commit is contained in:
Didier Slof 2023-08-23 06:47:44 +02:00
parent bfa0f9a0c7
commit 09709a39f7
Signed by: didier
GPG key ID: 01E71F18AA4398E5

View file

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