fix: check for interactivity
This commit is contained in:
parent
97e2713c43
commit
e96ec186be
7
setup.sh
7
setup.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user