mirror of
https://github.com/NixOS/nix.git
synced 2025-12-16 05:51:05 +01:00
tests: Make clearStore more resilient
Let it work if `$NIX_STORE_DIR` doesn’t exist
This commit is contained in:
parent
ef644ec753
commit
988c51de7f
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ clearProfiles() {
|
||||||
|
|
||||||
clearStore() {
|
clearStore() {
|
||||||
echo "clearing store..."
|
echo "clearing store..."
|
||||||
chmod -R +w "$NIX_STORE_DIR"
|
chmod -R +w "$NIX_STORE_DIR" || true
|
||||||
rm -rf "$NIX_STORE_DIR"
|
rm -rf "$NIX_STORE_DIR"
|
||||||
mkdir "$NIX_STORE_DIR"
|
mkdir "$NIX_STORE_DIR"
|
||||||
rm -rf "$NIX_STATE_DIR"
|
rm -rf "$NIX_STATE_DIR"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue