Permalink
Browse files

fixed startup shell script

  • Loading branch information...
ibressler committed Jul 10, 2016
1 parent c728bcc commit 659d38510764ab04f0e1baa308699ccc41751f01
Showing with 2 additions and 1 deletion.
  1. +2 −1 sasfit.sh
View
@@ -1,13 +1,14 @@
#!/bin/bash
# http://stackoverflow.com/a/630387
DIR="`dirname \"$0\"`"
+LIBPATH="lib"
UNAME="/bin/uname"
[ -f "$UNAME" ] || UNAME="/usr/bin/uname"
OS=$($UNAME -s)
if [ "$OS" == "Darwin" ]; then
DYLD_LIBRARY_PATH="$DIR:$DYLD_LIBRARY_PATH" "$DIR"/sasfit
elif [ -f "$LIBPATH"/ld-[0-9].[0-9][0-9].so ]; then
- LIBPATH="$DIR/lib"
+ LIBPATH="$DIR/$LIBPATH"
"$LIBPATH"/ld-[0-9].[0-9][0-9].so --library-path "$LIBPATH" "$DIR"/sasfit
fi;

0 comments on commit 659d385

Please sign in to comment.