Commit d5d13785 authored by Mayra Cabrera's avatar Mayra Cabrera

Fixes security harness check

It seems bash was not picking up the conditional because of the space
not around the square brackets

Related to https://gitlab.com/gitlab-com/gl-infra/delivery/-/issues/692
parent de84743f
......@@ -28,7 +28,7 @@ HOOK_DATA = <<~HOOK
if [ -e "$harness" ]
then
if [["$url" != *"gitlab-org/security/"*]]
if [[ "$url" != *"gitlab-org/security/"* ]]
then
echo "Pushing to remotes other than gitlab.com/gitlab-org/security has been disabled!"
echo "Run scripts/security-harness to disable this check."
......
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