[runescape] 03/04: Updated executable script

Carlos Donizete Froes coringao-guest at moszumanska.debian.org
Sat Oct 28 21:55:44 UTC 2017


This is an automated email from the git hooks/post-receive script.

coringao-guest pushed a commit to branch master
in repository runescape.

commit 6516eba307ff95b6190d58caa48792762e18a4a5
Author: Carlos Donizete Froes <coringao at riseup.net>
Date:   Sat Oct 28 19:44:32 2017 -0200

    Updated executable script
    
    Signed-off-by: Carlos Donizete Froes <coringao at riseup.net>
---
 src/runescape.sh | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/runescape.sh b/src/runescape.sh
index 10ba9a5..49720a5 100644
--- a/src/runescape.sh
+++ b/src/runescape.sh
@@ -5,8 +5,8 @@
 #	that can be found in the LICENSE file.
 #	Source code and contact info at https://github.com/coringao/runescape
 #
-# Game:     Runescape
-# Date:     October/2017
+# Script Name:	runescape.sh
+# Update Date:	October/2017
 #
 # Download Mac Client
 LINK="https://www.runescape.com/downloads/runescape.dmg"
@@ -15,11 +15,10 @@ LINK="https://www.runescape.com/downloads/runescape.dmg"
 GAME="$HOME/jagexcache/runescape/bin"
 
 # Temporary directory will be created and after installation this directory will be deleted
-TEMP="$HOME/.rs-temp"
+TEMP="$(mktemp -d /tmp/runescape.XXXXX)"
 
 if [ ! -d $GAME ]; then
 	mkdir -p $GAME
-	mkdir $TEMP
 	cd $TEMP
 
 # Downloading the file in the temporary directory
@@ -31,8 +30,6 @@ if [ ! -d $GAME ]; then
 # Uncompressing the file in the temporary directory
 	7z e runescape.dmg > /dev/null
 	mv jagexappletviewer.jar $GAME
-        cd
-	rm -rf $TEMP
 fi
 
 # Running the language selection window to start the game
@@ -70,4 +67,8 @@ if echo "$SELECT" | grep $"Spanish"; then
 	-Dcom.jagex.config=http://www.runescape.com/l=6/l=en/jav_config.ws \
 	jagexappletviewer "$GAME" > /dev/null
 fi
+
+# Removing temporary directory
+rm -rf $TEMP
+
 exit 0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/runescape.git



More information about the Pkg-games-commits mailing list