aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild/image-optimization.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/image-optimization.sh b/build/image-optimization.sh
index 81866a0fee4..6d494b8ddb7 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