demo/tools/mac/TlmViewer.app/Contents/MacOS/main.sh in cosmos-3.5.0 vs demo/tools/mac/TlmViewer.app/Contents/MacOS/main.sh in cosmos-3.5.1

- old
+ new

@@ -1,6 +1,10 @@ -#!/bin/bash -l -TOOLNAME=TlmViewer -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -rm $DIR/$TOOLNAME -ln -s `which ruby` $DIR/$TOOLNAME -exec $DIR/$TOOLNAME $DIR/$TOOLNAME.rb "$@" & +#!/bin/bash -l +TOOLNAME=TlmViewer +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +rm $DIR/$TOOLNAME +if hash rbenv 2>/dev/null; then + ln -s `rbenv which ruby` $DIR/$TOOLNAME +else + ln -s `which ruby` $DIR/$TOOLNAME +fi +exec $DIR/$TOOLNAME $DIR/$TOOLNAME.rb "$@" &