diff --git a/setup.sh b/setup.sh index c2234fa..4c114b7 100755 --- a/setup.sh +++ b/setup.sh @@ -1,9 +1,12 @@ #!/bin/bash cd "$(dirname "$0")" -INTERACTIVE=$(tty -s && echo "true" || echo "false") +INTERACTIVE=false + +if [[ $- == *i* ]] then + INTERACTIVE=true +fi -echo "Interactive: $INTERACTIVE" #Loading all the helper scripts . ./helpers/installer.sh --source-only