Permalink
Browse files

Fixed bug in LevelUnlocker

  • Loading branch information...
1 parent ce90b63 commit 92a797806c586ccdb4de8e42500a327c1227c697 @rmsy rmsy committed Mar 7, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 levelunlocker.sh
View
@@ -1,7 +1,7 @@
#!/bin/bash
#LevelUnlocker by Isaac Moore
#v2
-#2/23/12
+#3/5/12
help() {
echo "LevelUnlocker: "
@@ -331,11 +331,11 @@ if [ ! -z "$appdir" ]; then
cd "$appdir"
cd ../Documents
highscore=$(plutil -key "highScoreEntry1" "gameState.plist")
- score=$(sbalert -t "Tiny Wings" -m "This game supports high score editing. Enter a score higher than ${highscore}" -d "Modify" -a "Cancel" -p)
+ score=$(sbalert -t "Tiny Wings" -m "Enter a score higher than: ${highscore}" -d "Modify" -a "Cancel" -p)
response=$(echo $?)
if [ "$response" = "0" ]; then
plutil -key "highScoreEntry0" -value "$score" "gameState.plist" 2>&1> /dev/null
- name=$(sbalert -t "Tiny Wings" -m "Enter a name to be associated with this score" -p)
+ name=$(sbalert -t "Tiny Wings" -m "Enter a name to be associated with this score:" -p)
plutil -key "highScoreNameEntry0" -value "$name" "gameState.plist" 2>&1> /dev/null
sbalert -t "Success!" -m "Tiny Wings' highscore was successfully changed! Huzzah!"
fi
@@ -346,7 +346,7 @@ fi
#By Isaac Moore
appdir=$(grep -i "Carcassonne.app" /tmp/App_list.tmp)
-if [ ! -z "appdir" ]; then
+if [ ! -z "$appdir" ]; then
networkStatus=$(sbnetwork foobar.com)
if [ "$networkStatus" = "FAILED" ]; then
if [ "$cui" = "-cui" ]; then

2 comments on commit 92a7978

Collaborator

rmsy replied Mar 21, 2017

Man this is an old repo... brings back memories! Hope you're doing well @xKairu.

Owner

xKairu replied Mar 22, 2017

@rmsy 6 years ago... goddamn. You too man, last I knew you were doing some Minecraft stuff lmao

Please sign in to comment.