forked from Fediversity/Fediversity
Make ShellCheck happy
This commit is contained in:
parent
44a69fb376
commit
6182ba192c
2 changed files with 4 additions and 1 deletions
|
@ -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?' \
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue