Add another test to detect a non interactive shell. This may be the best method....
authorTodd Naugle <toddn@glw.com>
Wed, 29 Jun 2011 18:24:07 +0000 (18:24 +0000)
committerTodd Naugle <toddn@glw.com>
Wed, 29 Jun 2011 18:24:07 +0000 (18:24 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@9776 d708f5d6-7413-0410-9779-e7cbd77b26cf

tools/linux_packaging/install.sh

index a69a478a7fa9af86502909a22725149907231652..bedabf9fc43a562887f8fc34c6d9581cd9bb7b8d 100755 (executable)
@@ -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