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" )