From dc175d4ecc77501176370211cc7bc41d17aa6e31 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 1 Jul 2020 10:40:32 +0200 Subject: [PATCH] Fix typo in variable name and make check more accurate Signed-off-by: Joas Schilling --- build/image-optimization.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/image-optimization.sh b/build/image-optimization.sh index 81866a0fee..6d494b8ddb 100755 --- a/build/image-optimization.sh +++ b/build/image-optimization.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash CHECK_DIR='../' -if ! [ "$SERVER_VERSION" ]; then +if [[ -d "$1" ]]; then CHECK_DIR=$1 fi