Skip to content

Commit 5b9b1c3

Browse files
committed
Variable errors
change the condition of $NO_DIR_CHECK_OVERRIDE
1 parent 29c0eb0 commit 5b9b1c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/envsetup

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,9 @@ see_for_directory() {
221221
no_to_directory() {
222222
dir="$1"
223223
if [ -d "$dir" ]; then
224-
if ! $NO_DIR_CHECK_OVERRIDE; then
224+
if [ "$NO_DIR_CHECK_OVERRIDE" == "true" ]; then
225+
return 0
226+
else
225227
die "directory exits: $dir"
226228
fi
227229
fi

0 commit comments

Comments
 (0)