mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 06:42:28 +00:00
Missing addTextToStore function.
This commit is contained in:
parent
d1c77b201a
commit
44f855d14e
@ -59,3 +59,12 @@ initLowerStore () {
|
||||
execUnshare () {
|
||||
exec unshare --mount --map-root-user "$SHELL" "$@"
|
||||
}
|
||||
|
||||
addTextToStore() {
|
||||
storeDir=$1; shift
|
||||
filename=$1; shift
|
||||
content=$1; shift
|
||||
filePath="$TEST_HOME/$filename"
|
||||
echo "$content" > "$filePath"
|
||||
nix-store --store "$storeDir" --add "$filePath"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user