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
cd "$(dirname "$0")"
INTERACTIVE=false
if [[ $- == *i* ]] then
INTERACTIVE=true
INTERACTIVE="false"
if [ $- == *i* ]; then
INTERACTIVE="true"
fi