bundled LV2 plugin build and deployment
[ardour.git] / tools / linux_packaging / install.sh
index a69a478a7fa9af86502909a22725149907231652..b66b6d9dbef26709d5f1ae6156c1d191e7ea9fec 100755 (executable)
@@ -10,7 +10,10 @@ SAVED_PWD=$PWD
 PKG_PATH=$(dirname "$(readlink -f "$0")")
 cd "${PKG_PATH}"
 
-if [ -z "$TERM" ] || [ "$TERM" = "dumb" ]; 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