1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

shellcheck fix: tests/functional/flakes/prefetch.sh

This commit is contained in:
Farid Zakaria 2025-09-29 09:14:41 -07:00
parent b6f4788a8f
commit 020f67a653
2 changed files with 3 additions and 4 deletions

View file

@ -106,7 +106,6 @@
enable = true;
excludes = [
# We haven't linted these files yet
''^tests/functional/flakes/prefetch\.sh$''
''^tests/functional/flakes/run\.sh$''
''^tests/functional/flakes/show\.sh$''
''^tests/functional/formatter\.sh$''

View file

@ -3,6 +3,6 @@
source common.sh
# Test symlinks in zip files (#10649).
path=$(nix flake prefetch --json file://$(pwd)/tree.zip | jq -r .storePath)
[[ $(cat $path/foo) = foo ]]
[[ $(readlink $path/bar) = foo ]]
path=$(nix flake prefetch --json file://"$(pwd)"/tree.zip | jq -r .storePath)
[[ $(cat "$path"/foo) = foo ]]
[[ $(readlink "$path"/bar) = foo ]]