mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
Missing addTextToStore function.
This commit is contained in:
parent
d1c77b201a
commit
44f855d14e
1 changed files with 9 additions and 0 deletions
|
@ -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 a new issue