Skip to content
Snippets Groups Projects
Commit a216d5b4 authored by Lorenzo Pagliai's avatar Lorenzo Pagliai
Browse files

[SYNTAX] Fix on syntax on cache setup

parent 6ccb6f59
No related branches found
No related tags found
No related merge requests found
......@@ -2,23 +2,23 @@
PROCESSOR=$1
sed -i -e '/DL_DIR ?=/d' conf/local.conf;
echo 'DL_DIR = \"/var/cache/edgehog_downloads\"' >> conf/local.conf;
echo 'DL_DIR = "/var/cache/edgehog_downloads"' >> conf/local.conf;
if [[ $PROCESSOR == *imx6* && "$CI_JOB_NAME" != *"embedded"* ]];
then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-imx6\"' >> conf/local.conf;
then echo 'SSTATE_DIR = "/var/cache/edgehog_sstate-imx6"' >> conf/local.conf;
elif [[ $PROCESSOR == *imx8* && "$CI_JOB_NAME" != *"embedded"* ]];
then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-imx8\"' >> conf/local.conf;
then echo 'SSTATE_DIR = "/var/cache/edgehog_sstate-imx8"' >> conf/local.conf;
elif [[ $PROCESSOR == *rk* && "$CI_JOB_NAME" != *"embedded"* ]];
then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-rk\"' >> conf/local.conf;
then echo 'SSTATE_DIR = "/var/cache/edgehog_sstate-rk"' >> conf/local.conf;
elif [[ $PROCESSOR == *intel* && "$CI_JOB_NAME" != *"embedded"* ]];
then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-intel\"' >> conf/local.conf;
then echo 'SSTATE_DIR = "/var/cache/edgehog_sstate-intel"' >> conf/local.conf;
elif [[ $PROCESSOR == *imx6* && "$CI_JOB_NAME" == *"embedded"* ]];
then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-imx6-embedded\"' >> conf/local.conf;
then echo 'SSTATE_DIR = "/var/cache/edgehog_sstate-imx6-embedded"' >> conf/local.conf;
elif [[ $PROCESSOR == *imx8* && "$CI_JOB_NAME" == *"embedded"* ]];
then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-imx8-embedded\"' >> conf/local.conf;
then echo 'SSTATE_DIR = "/var/cache/edgehog_sstate-imx8-embedded"' >> conf/local.conf;
elif [[ $PROCESSOR == *rk* && "$CI_JOB_NAME" == *"embedded"* ]];
then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-rk-embedded\"' >> conf/local.conf;
then echo 'SSTATE_DIR = "/var/cache/edgehog_sstate-rk-embedded"' >> conf/local.conf;
elif [[ $PROCESSOR == *intel* && "$CI_JOB_NAME" == *"embedded"* ]];
then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-intel-embedded\"' >> conf/local.conf;
then echo 'SSTATE_DIR = "/var/cache/edgehog_sstate-intel-embedded"' >> conf/local.conf;
fi
echo '###############################'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment