about summary refs log tree commit diff stats
path: root/src/launch.sh
diff options
context:
space:
mode:
authorCharadon <dev@iotib.net>2022-09-27 16:01:39 -0400
committerCharadon <dev@iotib.net>2022-09-27 16:01:39 -0400
commite8a5f695cc7bd19d3b614cd72ee78ba708670b91 (patch)
tree5fd9812ddd2e212d0d20ade50bfad883d62b2ff6 /src/launch.sh
parent6b89e4444bd85b88579fd7010cc6738afd5b8d50 (diff)
downloadPong-C-e8a5f695cc7bd19d3b614cd72ee78ba708670b91.tar.gz
src/launch.sh: Switched from xz to gzip
Diffstat (limited to 'src/launch.sh')
-rw-r--r--src/launch.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/launch.sh b/src/launch.sh
index 1bec502..2523767 100644
--- a/src/launch.sh
+++ b/src/launch.sh
@@ -12,14 +12,14 @@ failed() {
 
 run_game() {
 	PAYLOAD_LINE="$(awk '/^__PAYLOAD_BEGINS__/ { print NR + 1; exit 0; }' "$0")" || return 1
-	tail -n +"${PAYLOAD_LINE}" "$0" | xz -d > "$TMPFILE" || return 1
+	tail -n +"${PAYLOAD_LINE}" "$0" | gzip -d > "$TMPFILE" || return 1
 	chmod +x "$TMPFILE" || return 1
 	DYLD_LIBRARY_PATH=libs/ LD_LIBRARY_PATH=libs/ "$TMPFILE" > output.log 2>&1 || return 1
 	return 0
 }
 
 cd "$(dirname "$0")" || exit 1
-trap '{ rm -rf "$TMPFILE"; }' EXIT HUP INT QUIT TERM PWR
+trap '{ rm -rf "$TMPFILE"; }' EXIT HUP INT QUIT TERM
 
 if ! TMPFILE="./$(mktemp .Pong-XXXXXX)";
 then