Skip to content

Commit

Permalink
fix: add platform check
Browse files Browse the repository at this point in the history
  • Loading branch information
cecilia-sanare committed Mar 15, 2024
1 parent 3eb33b3 commit 30fa3dd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ RPM_PACKAGE="https://github.com/rain-cafe/protontweaks/releases/download/v$VERSI

managers=()

case "$OSTYPE" in
"darwin")
echo "MacOS is not supported!"
exit 1
;;
"cygwin"|"msys"|"win32")
echo "Windows is not supported!"
exit 1
;;
"freebsd")
echo "FreeBSD is not supported!"
exit 1
;;
esac

has_manager() {
if [[ ! -z "$(type -p $1)" ]]; then
managers+=($1);
Expand Down

0 comments on commit 30fa3dd

Please sign in to comment.