No need for sudo under QMK MSYS

This commit is contained in:
Nick Brassel 2025-04-22 09:19:07 +10:00
parent a171b36eaf
commit de8d66b6fd
No known key found for this signature in database

View File

@ -105,7 +105,12 @@ __EOT__
} }
nsudo() { nsudo() {
[[ ${EUID:-} -ne 0 ]] && echo "sudo" if [ "$(fn_os)" = "windows" ]; then
# No need for sudo under QMK MSYS
return
elif [ ${EUID:-} -ne 0 ]; then
echo "sudo"
fi
true true
} }