mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-13 01:36:15 +02:00
* Fixed compatibility with old versions of "wc" that print whitespace
before the count.
This commit is contained in:
parent
b0e92f6d47
commit
997b95a4af
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ if test "$newTime" != "$oldTime"; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$(cat test-tmp/db/referrer/1 | wc -w)" != 1; then
|
if test "$(cat test-tmp/db/referrer/1 | wc -w)" -ne 1; then
|
||||||
echo "reregistration duplicated referrers"
|
echo "reregistration duplicated referrers"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -51,7 +51,7 @@ echo "collecting garbage..."
|
||||||
ln -sfn $reference "$NIX_STATE_DIR"/gcroots/ref
|
ln -sfn $reference "$NIX_STATE_DIR"/gcroots/ref
|
||||||
time $nixstore --gc
|
time $nixstore --gc
|
||||||
|
|
||||||
if test "$(cat test-tmp/db/referrer/abcdef | wc -w)" != 0; then
|
if test "$(cat test-tmp/db/referrer/abcdef | wc -w)" -ne 0; then
|
||||||
echo "referrers not cleaned up"
|
echo "referrers not cleaned up"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue