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/dyn-drv/recursive-mod-json.sh

This commit is contained in:
Farid Zakaria 2025-09-25 10:31:06 -07:00
parent 119489f253
commit dc69e2e520
2 changed files with 6 additions and 6 deletions

View file

@ -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$''

View file

@ -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