Commit 6e996a44 authored by Aleks's avatar Aleks
Browse files

Change syntax for to check if we're running in the CI

parent fe099910
......@@ -123,4 +123,7 @@ chmod 0755 /etc/cron.daily/$app-renew-cert
ynh_script_progression "Checking certificates…"
# (This is expected to fail during CI tests because no credential available)
/etc/cron.daily/$app-renew-cert || [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]
if [[ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]]
then
/etc/cron.daily/$app-renew-cert
fi
......@@ -89,4 +89,7 @@ chmod 0755 /etc/cron.daily/$app-renew-cert \
ynh_script_progression "Checking certificates…"
# (This is expected to fail during CI tests because no credential available)
/etc/cron.daily/$app-renew-cert || [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]
if [[ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]]
then
/etc/cron.daily/$app-renew-cert
fi
......@@ -159,4 +159,7 @@ chmod 0755 /etc/cron.daily/$app-renew-cert
ynh_script_progression "Checking certificates..."
# (This is expected to fail during CI tests because no credential available)
/etc/cron.daily/$app-renew-cert || [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]
if [[ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]]
then
/etc/cron.daily/$app-renew-cert
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment