1
0
Fork 0

Make ShellCheck happy

This commit is contained in:
Nicolas Jeannerod 2025-02-25 17:09:34 +01:00
parent 44a69fb376
commit 6182ba192c
Signed by untrusted user: Niols
GPG key ID: 35DB9EC8886E1CB8
2 changed files with 4 additions and 1 deletions

View file

@ -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?' \

View file

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