1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 14:21:48 +02:00

Fix errors about NIX_STORE_DIR being unset.

This commit is contained in:
Ben Radford 2023-07-20 10:27:35 +01:00
parent 9769a0ae7d
commit 878c84d5ee
No known key found for this signature in database
GPG key ID: 9DF5D4640AB888D5
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ remountOverlayfs () {
toRealPath () {
storeDir=$1; shift
storePath=$1; shift
echo $storeDir$(echo $storePath | sed "s^$NIX_STORE_DIR^^")
echo $storeDir$(echo $storePath | sed "s^${NIX_STORE_DIR:-/nix/store}^^")
}
initLowerStore () {