Files
metabuilder/libraries/cadquerywrapper/setup.sh
2026-03-09 22:30:41 +00:00

21 lines
434 B
Bash
Executable File

#!/usr/bin/env bash
set -e
case "$(uname)" in
Linux*) script="setup_linux.sh" ;;
Darwin*) script="setup_mac.sh" ;;
MINGW*|MSYS*|CYGWIN*) script="setup_windows.ps1" ;;
*) echo "Unsupported OS: $(uname)" && exit 1 ;;
esac
if [ "$script" = "setup_windows.ps1" ]; then
if command -v pwsh >/dev/null 2>&1; then
pwsh "$script"
else
powershell.exe -ExecutionPolicy Bypass -File "$script"
fi
else
bash "$script"
fi