fix: check for interactivity

This commit is contained in:
max_richter 2021-09-12 16:36:44 +02:00
parent 97e2713c43
commit e96ec186be

View File

@ -1,9 +1,12 @@
#!/bin/bash #!/bin/bash
cd "$(dirname "$0")" 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 #Loading all the helper scripts
. ./helpers/installer.sh --source-only . ./helpers/installer.sh --source-only