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:
parent
b6f4788a8f
commit
020f67a653
2 changed files with 3 additions and 4 deletions
|
|
@ -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$''
|
||||
|
|
|
|||
|
|
@ -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 ]]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue