Skip to content

Commit f991444

Browse files
committed
Make launcher script location independent
Signed-off-by: Stefan Marr <[email protected]>
1 parent 5d62dca commit f991444

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

som.sh

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
#!/bin/sh
1+
#!/bin/bash
2+
pushd `dirname $0` > /dev/null
3+
SCRIPT_PATH=`pwd`
4+
popd > /dev/null
5+
26
if [ "`uname`" = "Linux" ]
37
then
4-
export LD_LIBRARY_PATH=.
8+
export LD_LIBRARY_PATH=${SCRIPT_PATH}/
59
fi
6-
./SOM++ "$@"
10+
${SCRIPT_PATH}/SOM++ "$@"

0 commit comments

Comments
 (0)