1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 12:06:01 +01:00

tests/func*/ca/build-with-garbage-path: Fix shellcheck

This commit is contained in:
Robert Hensing 2025-09-22 19:58:00 +02:00
parent 8b97d14c08
commit 8c31e07cce
2 changed files with 1 additions and 1 deletions

View file

@ -108,7 +108,6 @@
# We haven't linted these files yet # We haven't linted these files yet
''^scripts/install-multi-user\.sh$'' ''^scripts/install-multi-user\.sh$''
''^scripts/install-systemd-multi-user\.sh$'' ''^scripts/install-systemd-multi-user\.sh$''
''^tests/functional/ca/build-with-garbage-path\.sh$''
''^tests/functional/ca/common\.sh$'' ''^tests/functional/ca/common\.sh$''
''^tests/functional/ca/concurrent-builds\.sh$'' ''^tests/functional/ca/concurrent-builds\.sh$''
''^tests/functional/characterisation-test-infra\.sh$'' ''^tests/functional/characterisation-test-infra\.sh$''

View file

@ -8,6 +8,7 @@ requireDaemonNewerThan "2.4pre20210621"
# Get the output path of `rootCA`, and put some garbage instead # Get the output path of `rootCA`, and put some garbage instead
outPath="$(nix-build ./content-addressed.nix -A rootCA --no-out-link)" outPath="$(nix-build ./content-addressed.nix -A rootCA --no-out-link)"
# shellcheck disable=SC2046 # Multiple store paths need to become individual args
nix-store --delete $(nix-store -q --referrers-closure "$outPath") nix-store --delete $(nix-store -q --referrers-closure "$outPath")
touch "$outPath" touch "$outPath"