Skip to content

Commit

Permalink
Fix launcher script.
Browse files Browse the repository at this point in the history
It wasn't working when launched from  paths with spaces or other special characters.
  • Loading branch information
rafael1193 committed May 2, 2015
1 parent a8047d9 commit 33e9043
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions suprem4gs
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#!/bin/sh
# Where is it?
SUPREM4_HOME=$(pwd)
SUP4KEYFILE=$SUPREM4_HOME/data/suprem.uk
SUP4MODELRC=$SUPREM4_HOME/data/modelrc
SUP4IMPDATA=$SUPREM4_HOME/data/sup4gs.imp
SUP4MANDIR=$SUPREM4_HOME/help
# should set SUPREM4_HOME first!
SUPREM4_HOME="$(pwd)"
SUP4KEYFILE="$SUPREM4_HOME/data/suprem.uk"
SUP4MODELRC="$SUPREM4_HOME/data/modelrc"
SUP4IMPDATA="$SUPREM4_HOME/data/sup4gs.imp"
SUP4MANDIR="$SUPREM4_HOME/help"

export SUP4MANDIR SUP4KEYFILE SUP4MODELRC SUP4IMPDATA SUP4MANDIR

exec $SUPREM4_HOME/bin/suprem $*
exec "$SUPREM4_HOME/suprem" $*

#should never get here!
exit 1

0 comments on commit 33e9043

Please sign in to comment.