Commit 3474ddf3 authored by Antoine Regimbeau's avatar Antoine Regimbeau

Fix issue on string comparison

parent 0fa377fa
Pipeline #1996 failed with stages
in 41 minutes and 27 seconds
......@@ -7,7 +7,7 @@ prod_area=/home/otbpush/test/prod
#check if we are dealing with the right packages
pack_sha=`ssh ${server_name} head ${staging_area}/ref.sha`
if [ ${pack_sha} != ${CI_COMMIT_SHA} ]
if [[ "${pack_sha}" != "${CI_COMMIT_SHA}" ]]
echo "Wrong sha1"
exit 1
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