about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCharadon <dev@iotib.net>2022-09-26 12:53:25 -0400
committerCharadon <dev@iotib.net>2022-09-26 12:53:25 -0400
commitbd29c1d0e6edb1af2f6591b101bd3b60604c352b (patch)
tree59db2e613878a906c6e70c3012ec2943f9d64a7f
parentb361396d6212bcc591180d4654291eab643a7f8b (diff)
downloadPong-C-bd29c1d0e6edb1af2f6591b101bd3b60604c352b.tar.gz
install.sh: Fixed Windows detection.
-rwxr-xr-xinstall.sh16
1 files changed, 9 insertions, 7 deletions
diff --git a/install.sh b/install.sh
index 7c0e174..7aec82e 100755
--- a/install.sh
+++ b/install.sh
@@ -17,13 +17,15 @@ mkdir -p $CONFIG_INSTALL_PREFIX
 cp -r resources $CONFIG_INSTALL_PREFIX/
 cp -r docs $CONFIG_INSTALL_PREFIX/
 
-if [ "$(uname -s)" = "MINGW*" ];
-then
-	cp $CONFIG_BUILD_DIR/bin/Pong* $CONFIG_INSTALL_PREFIX/
-else
-	install -m755 src/launch.sh $CONFIG_INSTALL_PREFIX/Pong.run
-	cat $CONFIG_BUILD_DIR/bin/Pong* | xz -9 -c >> $CONFIG_INSTALL_PREFIX/Pong.run
-fi
+case "$(uname -s)" in
+	MINGW*)
+		cp $CONFIG_BUILD_DIR/bin/Pong* $CONFIG_INSTALL_PREFIX/
+		;;
+	*)
+		install -m755 src/launch.sh $CONFIG_INSTALL_PREFIX/Pong.run
+		cat $CONFIG_BUILD_DIR/bin/Pong* | xz -9 -c >> $CONFIG_INSTALL_PREFIX/Pong.run
+		;;
+esac
 
 if [ "$CONFIG_FLATPAK" = "true" ];
 then