Shellcheck; i hovedsak variabel-quoting #123

Open
felixalb wants to merge 1 commits from shellcheck into main
Owner

Kjørt shellcheck og manuell inspeksjon av diverse shellscripts. De fleste endringene er å legge til "" rundt variabler som i teorien kan inneholde mellomrom eller andre rare tegn, f.eks. hvis de er brukerstyrte og ikke er en store-path.

Kjørt shellcheck og manuell inspeksjon av diverse shellscripts. De fleste endringene er å legge til `""` rundt variabler som i teorien kan inneholde mellomrom eller andre rare tegn, f.eks. hvis de er brukerstyrte og ikke er en store-path.
felixalb added 1 commit 2026-02-08 12:14:16 +01:00
Run shellcheck
Some checks failed
Eval nix flake / evals (push) Successful in 8m32s
Eval nix flake / evals (pull_request) Failing after 3h12m41s
81b458d59c
Owner

Flere ut av disse kan i teorien bli enda sikrere om du bruker ', siden de ikke skal expande noe at runtime. litt nitt

Flere ut av disse kan i teorien bli enda sikrere om du bruker `'`, siden de ikke skal expande noe at runtime. litt nitt
oysteikt reviewed 2026-02-08 13:58:29 +01:00
@@ -54,2 +54,2 @@
mkdir -p $(dirname "${value.certificate}") $(dirname "${value.certificateKey}")
if ! ${openssl} x509 -checkend 86400 -noout -in ${value.certificate}
mkdir -p "$(dirname "${value.certificate}")" "$(dirname "${value.certificateKey}")"
if ! ${openssl} x509 -checkend 86400 -noout -in "${value.certificate}"
Owner

Consider quoting ${openssl} in case the nix store is located in a path with spaces :3

Consider quoting `${openssl}` in case the nix store is located in a path with spaces :3
Some checks failed
Eval nix flake / evals (push) Successful in 8m32s
Eval nix flake / evals (pull_request) Failing after 3h12m41s
This pull request has changes conflicting with the target branch.
  • hosts/kommode/services/gitea/customization/default.nix
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin shellcheck:shellcheck
git checkout shellcheck
Sign in to join this conversation.