13
0

Add another test to detect a non interactive shell. This may be the best method. Fixes double click install on AVLinux 5

git-svn-id: svn://localhost/ardour2/branches/3.0@9776 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Todd Naugle 2011-06-29 18:24:07 +00:00
parent 84be4eafc5
commit 10e12dc287

View File

@ -10,7 +10,7 @@ SAVED_PWD=$PWD
PKG_PATH=$(dirname "$(readlink -f "$0")")
cd "${PKG_PATH}"
if [ -z "$TERM" ] || [ "$TERM" = "dumb" ]; then
if [ -z "$TERM" ] || [ "$TERM" = "dumb" ] || [ -z "$PS1" ]; then
if which xterm > /dev/null; then
exec xterm -e "${PKG_PATH}/.stage2.run"
elif which gnome-terminal > /dev/null; then