fix: check for interactivity

This commit is contained in:
max_richter 2021-09-12 16:38:15 +02:00
parent e96ec186be
commit 91c7ded024

View File

@ -1,10 +1,9 @@
#!/bin/bash #!/bin/bash
cd "$(dirname "$0")" cd "$(dirname "$0")"
INTERACTIVE=false INTERACTIVE="false"
if [ $- == *i* ]; then
if [[ $- == *i* ]] then INTERACTIVE="true"
INTERACTIVE=true
fi fi