chore: fix windows build (#25696)

This commit is contained in:
Andrew
2026-05-03 07:27:18 -03:00
committed by GitHub
parent 9f0df43f94
commit 1f3969708c
3 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Set SUDO variable - one liner
if [[ "$OSTYPE" == "msys"* ]]; then
if [[ "$OSTYPE" == "msys"* || "$OSTYPE" == "cygwin"* ]]; then
SUDO=""
else
SUDO=$([ "$EUID" -ne 0 ] && echo "sudo" || echo "")
@@ -49,7 +49,7 @@ function inst_configureOS() {
source "$AC_PATH_INSTALLER/includes/os_configs/$DISTRO.sh"
;;
*bsd*) echo "BSD is not supported yet" ;;
msys*) source "$AC_PATH_INSTALLER/includes/os_configs/windows.sh" ;;
msys*|cygwin*) source "$AC_PATH_INSTALLER/includes/os_configs/windows.sh" ;;
*) echo "This platform is not supported" ;;
esac
}