about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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
='n97' href='#n97'>97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133