From 69e00bafd66f2ebcd0f62c87a3026a6be0e1e456 Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Fri, 11 Sep 2020 13:07:01 +0200 Subject: [PATCH] Fix shellcheck error? --- abra | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/abra b/abra index cee566f5..ee5058ce 100755 --- a/abra +++ b/abra @@ -2,11 +2,11 @@ PROGRAM_NAME=""$(basename "$0") 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 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)" exit fi