From 36f062899d52f4e656e875001ffc0678cfb10083 Mon Sep 17 00:00:00 2001
From: lukken <lukken@astron.nl>
Date: Tue, 7 Dec 2021 10:00:07 +0000
Subject: [PATCH] L2SS-205: Prevent globbing in basename

---
 sbin/tag_and_push_docker_image.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sbin/tag_and_push_docker_image.sh b/sbin/tag_and_push_docker_image.sh
index a6c250c03..631413235 100755
--- a/sbin/tag_and_push_docker_image.sh
+++ b/sbin/tag_and_push_docker_image.sh
@@ -1,19 +1,19 @@
 #!/bin/bash -e
 
 function usage {
-    echo "./$(basename $0)
+    echo "./$(basename "$0")
       no arguments, downloads remote images and pushes these to ASTRON registry.
       The versions downloaded are controlled by the docker-compose/.env file"
     echo ""
-    echo "./$(basename $0) -h
+    echo "./$(basename "$0") -h
       displays this help message"
     echo ""
-    echo "./$(basename $0) <docker service name> <tag>
+    echo "./$(basename "$0") <docker service name> <tag>
       downloads latest version of image from the ASTRON registry, builds the
       specified service and pushes the image with the specified tag to the
       ASTRON registry"
     echo ""
-    echo "./$(basename $0) pull <tag>
+    echo "./$(basename "$0") pull <tag>
       downloads all images for the integration test with the specified tag
       falling back to 'latest' if unavailable. Should neither exist on the
       ASTRON registry the script will exit 1. The images are retagged to match
-- 
GitLab