mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
21 lines
434 B
Bash
Executable File
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
|
|
|