From c3819f59cbd0d1f387e6f32dc1ca7987e8039a76 Mon Sep 17 00:00:00 2001
From: Varac <varac@varac.net>
Date: Tue, 19 Oct 2021 15:23:01 +0200
Subject: [PATCH] Make shellcheck happy

---
 .gitlab/ci_scripts/create_vps.sh | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/.gitlab/ci_scripts/create_vps.sh b/.gitlab/ci_scripts/create_vps.sh
index e6a16d033..6f59ed5b4 100644
--- a/.gitlab/ci_scripts/create_vps.sh
+++ b/.gitlab/ci_scripts/create_vps.sh
@@ -3,15 +3,19 @@
 
 set -ve
 
+# shellcheck disable=SC2039
+HOST_NAME="$HOSTNAME"
+
 # Delete old machine if it still exists
 echo "Deleting old machine"
-python3 -c "import greenhost_cloud; greenhost_cloud.terminate_droplets_by_name(\"^${HOSTNAME}$\")"
+python3 -c "import greenhost_cloud;
+greenhost_cloud.terminate_droplets_by_name(\"^${HOST_NAME}$\")"
 echo "Creating new machine"
 # Uses a custom disk image built with 1f2bee2 on 2021-10-19. See
 # CONTRIBUTING.md#ci-pipeline-image for more info.
-python3 -m openappstack $HOSTNAME create \
+python3 -m openappstack "$HOST_NAME" create \
   --create-droplet "$DOMAIN" \
-  --create-hostname "$HOSTNAME" \
+  --create-hostname "$HOST_NAME" \
   --ssh-key-id "$SSH_KEY_ID" \
   --create-domain-records \
   --subdomain "$SUBDOMAIN" \
-- 
GitLab