Fix shellcheck error?
This commit is contained in:
parent
ea79ad809a
commit
69e00bafd6
4
abra
4
abra
@ -2,11 +2,11 @@
|
|||||||
PROGRAM_NAME=""$(basename "$0")
|
PROGRAM_NAME=""$(basename "$0")
|
||||||
|
|
||||||
if [ -z "$STACK_NAME" ] || [ -z "$STACK_NAME" ]; then
|
if [ -z "$STACK_NAME" ] || [ -z "$STACK_NAME" ]; then
|
||||||
echo "$(tput setaf 1)ERROR: STACK_NAME must be set (e.g. export STACK_NAME=my_cool_app)$(tput sgr0 )"
|
echo "$(tput setaf 1)ERROR: \$STACK_NAME must be set (e.g. export STACK_NAME=my_cool_app)$(tput sgr0 )"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if type direnv 2>&1 > /dev/null && ! direnv status | grep -q 'Found RC allowed true'; then
|
if type direnv > /dev/null 2>&1 && ! direnv status | grep -q 'Found RC allowed true'; then
|
||||||
echo "$(tput setaf 1)ERROR: direnv is blocked, run direnv allow$(tput sgr0)"
|
echo "$(tput setaf 1)ERROR: direnv is blocked, run direnv allow$(tput sgr0)"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user