Skip to content

Commit

Permalink
fix the check for "os version detected", using integer expressions for
Browse files Browse the repository at this point in the history
strings does not work... DOH!
  • Loading branch information
ivanovic committed Feb 26, 2012
1 parent f19e494 commit ca04c66
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pandora/pnd/snes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,21 +76,21 @@ then
#the extracted name is without the internal PATH of the archive, so strip away this part!
FILENAME=`echo $FILEITEM | sed -e "s,^.*/,,g"`
FILENAME="/tmp/$FILENAME"
if [ "$REQUIRED_VERSION_FOUND" -eq "no" ]
if [ "$REQUIRED_VERSION_FOUND" = "yes" ]
then
./snes9x $ARGS "$FILENAME"
else
# LD_LIBRARY_PATH=lib/:$LD_LIBRARY_PATH ./snes9x $ARGS "$FILENAME"
LD_PRELOAD=lib/libSDL-1.2.so.0 ./snes9x $ARGS "$FILENAME"
else
./snes9x $ARGS "$FILENAME"
fi
rm "$FILENAME"
fi
else
if [ "$REQUIRED_VERSION_FOUND" -eq "no" ]
if [ "$REQUIRED_VERSION_FOUND" = "yes" ]
then
./snes9x $ARGS "$1"
else
# LD_LIBRARY_PATH=lib/:$LD_LIBRARY_PATH ./snes9x $ARGS "$1"
LD_PRELOAD=lib/libSDL-1.2.so.0 ./snes9x $ARGS "$1"
else
./snes9x $ARGS "$1"
fi
fi

0 comments on commit ca04c66

Please sign in to comment.