diff --git a/scripts/yocto_cache_setup.sh b/scripts/yocto_cache_setup.sh
index f500846496a4b4bf1db6ec6c80f36937fcbab8c4..553498f103d4f719376264187fedb51ac085f15a 100644
--- a/scripts/yocto_cache_setup.sh
+++ b/scripts/yocto_cache_setup.sh
@@ -23,7 +23,7 @@ if [ -z "$CUSTOM" ]; then
     then echo 'SSTATE_DIR = "/var/cache/edgehog_sstate-intel-embedded"' >> conf/local.conf;
   fi
 else
-  if [[ "$CI_JOB_NAME" != *"embedded"* ]];
+  if [[ "$CI_JOB_NAME" != *"embedded"* ]]; then
     echo 'SSTATE_DIR = "/var/cache/edgehog_sstate-${CUSTOM}-things"' >> conf/local.conf;
   else 
     echo 'SSTATE_DIR = "/var/cache/edgehog_sstate-${CUSTOM}-embedded"' >> conf/local.conf;