X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=tools%2Flinux_packaging%2Finstall.sh;h=b66b6d9dbef26709d5f1ae6156c1d191e7ea9fec;hb=b951448750e1e5f9023467aea26eb631a19e8363;hp=bedabf9fc43a562887f8fc34c6d9581cd9bb7b8d;hpb=10e12dc28774afa92ce64ebc76d9b3a55dd81c91;p=ardour.git diff --git a/tools/linux_packaging/install.sh b/tools/linux_packaging/install.sh index bedabf9fc4..b66b6d9dbe 100755 --- a/tools/linux_packaging/install.sh +++ b/tools/linux_packaging/install.sh @@ -10,7 +10,10 @@ SAVED_PWD=$PWD PKG_PATH=$(dirname "$(readlink -f "$0")") cd "${PKG_PATH}" -if [ -z "$TERM" ] || [ "$TERM" = "dumb" ] || [ -z "$PS1" ]; then +# check for an interactive terminal +# -t fd - Returns true if file descriptor fd is open and refers to a terminal. +# fd 1 is stdout +if [ ! -t 1 ]; then if which xterm > /dev/null; then exec xterm -e "${PKG_PATH}/.stage2.run" elif which gnome-terminal > /dev/null; then