fix: handle windows desktop runtime helper mode (#1519)

This commit is contained in:
Carlos Florêncio
2026-06-28 18:04:24 +01:00
committed by GitHub
parent 8ca17e0d6e
commit 5c4fab2bd2
2 changed files with 24 additions and 1 deletions
+6 -1
View File
@@ -59,7 +59,12 @@ is_executable_file() {
return 0
fi
# MSYS/Git Bash can report Windows executables differently from Unix mode bits.
[ "${OS:-}" = "Windows_NT" ] && [[ "$path" == *.exe ]]
if [ "${OS:-}" = "Windows_NT" ]; then
case "$(basename "$path")" in
*.exe|agentctl-linux-amd64) return 0 ;;
esac
fi
return 1
}
require_one() {