summaryrefslogtreecommitdiff
path: root/runescape-launcher-launcher
diff options
context:
space:
mode:
Diffstat (limited to 'runescape-launcher-launcher')
-rwxr-xr-xrunescape-launcher-launcher3
1 files changed, 1 insertions, 2 deletions
diff --git a/runescape-launcher-launcher b/runescape-launcher-launcher
index 369b992..50aff81 100755
--- a/runescape-launcher-launcher
+++ b/runescape-launcher-launcher
@@ -4,7 +4,7 @@ set -e
xdg_data_home=${XDG_DATA_HOME:-$HOME/.local/share}
rll=$xdg_data_home/runescape-launcher-launcher
tmpdir=$(mktemp -dt runescape-launcher-launcher.XXXXXXXXXX)
-trap 'echo "cleaning up temporary directory..." >&2; rm -rf "$tmpdir"' INT TERM QUIT EXIT
+trap 'trap "" INT TERM QUIT EXIT; echo "cleaning up temporary directory..." >&2; rm -rf "$tmpdir"' INT TERM QUIT EXIT
if [ -f "$rll/Packages" ]; then
echo "checking for runescape-launcher updates..."
else
@@ -29,7 +29,6 @@ if ! cmp "$rll/Packages" "$tmpdir/Packages" 2>/dev/null; then
fi
tar -C "$tmpdir" -xf "$tmpdir/data.tar.xz" ./usr/bin/runescape-launcher ./usr/share/games/runescape-launcher/runescape
sed -e 's#/usr/share/games/runescape-launcher/#${0%/*}/#' "$tmpdir/usr/bin/runescape-launcher" > "$tmpdir/runescape-launcher"
- cat
install -Dm644 "$tmpdir/Packages" "$rll/Packages"
install -m755 "$tmpdir/runescape-launcher" "$tmpdir/usr/share/games/runescape-launcher/runescape" "$rll/"
else