From 6182ba192c4176425b82c4193964903f7978e231 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nicolas=20=E2=80=9CNiols=E2=80=9D=20Jeannerod?=
 <nicolas.jeannerod@moduscreate.com>
Date: Tue, 25 Feb 2025 17:09:34 +0100
Subject: [PATCH] Make ShellCheck happy

---
 infra/proxmox-provision.sh | 2 ++
 infra/proxmox-remove.sh    | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/infra/proxmox-provision.sh b/infra/proxmox-provision.sh
index b92097f2..c41fb44b 100755
--- a/infra/proxmox-provision.sh
+++ b/infra/proxmox-provision.sh
@@ -58,6 +58,7 @@ die_with_help () { printf '\033[31m'; printf "$@"; printf '\033[0m\n\n'; help; e
 debug () { if $debug; then printf >&2 '\033[37m'; printf >&2 "$@"; printf >&2 '\033[0m\n'; fi }
 
 if [ -f .proxmox ]; then
+  # shellcheck disable=SC1091
   . "$PWD"/.proxmox
 fi
 
@@ -235,6 +236,7 @@ build_iso () {
     --log-format raw --quiet \
     --out-link "$tmpdir/installer-$vm_name"
 
+  # shellcheck disable=SC2181
   if [ $? -ne 0 ]; then
     die 'Something went wrong when building ISO for VM %s.
 Check the Nix logs and fix things. Possibly there just is no NixOS configuration by that name?' \
diff --git a/infra/proxmox-remove.sh b/infra/proxmox-remove.sh
index 8ae410e8..83510f26 100755
--- a/infra/proxmox-remove.sh
+++ b/infra/proxmox-remove.sh
@@ -48,6 +48,7 @@ die () { printf '\033[31m'; printf "$@"; printf '\033[0m\n'; exit 2; }
 die_with_help () { printf '\033[31m'; printf "$@"; printf '\033[0m\n'; help; exit 2; }
 
 if [ -f .proxmox ]; then
+  # shellcheck disable=SC1091
   . "$PWD"/.proxmox
 fi
 
@@ -82,7 +83,7 @@ printf 'Authenticating...'
 response=$(
     http \
         --verify no \
-        POST $api_url/access/ticket \
+        POST "$api_url"/access/ticket \
         "username=$username" \
         "password=$password"
     )