mirror of
https://github.com/NixOS/nix
synced 2025-07-16 02:01:59 +02:00
Try to fix quotes that don't go to end with sed
This commit is contained in:
parent
1afac8fbbc
commit
d8ae28617d
11 changed files with 16 additions and 16 deletions
|
@ -8,8 +8,8 @@ drvPath=$(nix-instantiate dependencies.nix)
|
|||
outPath=$(nix-store -rvv "$drvPath")
|
||||
|
||||
# Set a GC root.
|
||||
rm -f "$NIX_STATE_DIR"/gcroots/foo
|
||||
ln -sf $outPath "$NIX_STATE_DIR"/gcroots/foo
|
||||
rm -f "$NIX_STATE_DIR/gcroots/foo"
|
||||
ln -sf $outPath "$NIX_STATE_DIR/gcroots/foo"
|
||||
|
||||
[ "$(nix-store -q --roots $outPath)" = "$NIX_STATE_DIR/gcroots/foo -> $outPath" ]
|
||||
|
||||
|
@ -42,7 +42,7 @@ cat $outPath/reference-to-input-2/bar
|
|||
# Check that the derivation has been GC'd.
|
||||
if test -e $drvPath; then false; fi
|
||||
|
||||
rm "$NIX_STATE_DIR"/gcroots/foo
|
||||
rm "$NIX_STATE_DIR/gcroots/foo"
|
||||
|
||||
nix-collect-garbage
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue