shellcheck

This commit is contained in:
Eelco Dolstra 2024-09-18 18:05:08 +02:00
parent 8690b6f138
commit d772a8b3dc

View file

@ -28,7 +28,7 @@ if canUseSandbox; then
# of a shell in the sandbox. We only care about testing the IFD # of a shell in the sandbox. We only care about testing the IFD
# semantics. # semantics.
for i in bar result addPath; do for i in bar result addPath; do
nix copy --to "$store2_url" --no-check-sigs "$(nix-build ./import-from-derivation.nix -A $i --no-out-link)" nix copy --to "$store2_url" --no-check-sigs "$(nix-build ./import-from-derivation.nix -A "$i" --no-out-link)"
done done
clearStore clearStore
@ -36,7 +36,7 @@ if canUseSandbox; then
outPath_check=$(nix-build ./import-from-derivation.nix -A result --no-out-link --store "$store2_url") outPath_check=$(nix-build ./import-from-derivation.nix -A result --no-out-link --store "$store2_url")
[[ "$outPath" = "$outPath_check" ]] [[ "$outPath" = "$outPath_check" ]]
[[ ! -e "$outPath" ]] [[ ! -e "$outPath" ]]
[[ -e "$store2/nix/store/$(basename $outPath)" ]] [[ -e "$store2/nix/store/$(basename "$outPath")" ]]
outPath2_check=$(nix-build ./import-from-derivation.nix -A addPath --no-out-link --store "$store2_url") outPath2_check=$(nix-build ./import-from-derivation.nix -A addPath --no-out-link --store "$store2_url")
[[ "$outPath2" = "$outPath2_check" ]] [[ "$outPath2" = "$outPath2_check" ]]