mirror of
https://github.com/carlosedp/qmk_firmware.git
synced 2026-08-04 16:27:08 -04:00
doas support.
This commit is contained in:
@@ -127,7 +127,14 @@ __EOT__
|
||||
# No need for sudo under QMK MSYS
|
||||
return
|
||||
elif [ $(id -u) -ne 0 ]; then
|
||||
echo "sudo"
|
||||
if [ -n "$(command -v sudo 2>/dev/null || true)" ]; then
|
||||
echo "sudo"
|
||||
elif [ -n "$(command -v doas 2>/dev/null || true)" ]; then
|
||||
echo "doas"
|
||||
else
|
||||
echo "Please install 'sudo' or 'doas' to continue." >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user