mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
shellcheck fix: tests/functional/dyn-drv/recursive-mod-json.sh
This commit is contained in:
parent
119489f253
commit
dc69e2e520
2 changed files with 6 additions and 6 deletions
|
|
@ -107,7 +107,6 @@
|
|||
excludes = [
|
||||
# We haven't linted these files yet
|
||||
''^tests/functional/dump-db\.sh$''
|
||||
''^tests/functional/dyn-drv/recursive-mod-json\.sh$''
|
||||
''^tests/functional/eval-store\.sh$''
|
||||
''^tests/functional/export-graph\.sh$''
|
||||
''^tests/functional/export\.sh$''
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# shellcheck shell=bash
|
||||
source common.sh
|
||||
|
||||
# FIXME
|
||||
|
|
@ -10,18 +11,18 @@ restartDaemon
|
|||
|
||||
clearStore
|
||||
|
||||
rm -f $TEST_ROOT/result
|
||||
rm -f "$TEST_ROOT"/result
|
||||
|
||||
EXTRA_PATH=$(dirname $(type -p nix)):$(dirname $(type -p jq))
|
||||
EXTRA_PATH=$(dirname "$(type -p nix)"):$(dirname "$(type -p jq)")
|
||||
export EXTRA_PATH
|
||||
|
||||
# Will produce a drv
|
||||
metaDrv=$(nix-instantiate ./recursive-mod-json.nix)
|
||||
|
||||
# computed "dynamic" derivation
|
||||
drv=$(nix-store -r $metaDrv)
|
||||
drv=$(nix-store -r "$metaDrv")
|
||||
|
||||
# build that dyn drv
|
||||
res=$(nix-store -r $drv)
|
||||
res=$(nix-store -r "$drv")
|
||||
|
||||
grep 'I am alive!' $res/hello
|
||||
grep 'I am alive!' "$res"/hello
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue