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