refactor: Simplify appending to file
Avoids one extra command, and removes the need for `tee`.
This commit is contained in:
parent
ef4bcbc79c
commit
ac5ee67104
@ -15,7 +15,7 @@ trap 'rm -rf "$workdir"' EXIT
|
||||
|
||||
# Configure Nix
|
||||
add_config() {
|
||||
echo "$1" | tee -a "$workdir/nix.conf" >/dev/null
|
||||
echo "$1" >> "$workdir/nix.conf"
|
||||
}
|
||||
# Set jobs to number of cores
|
||||
add_config "max-jobs = auto"
|
||||
|
Loading…
Reference in New Issue
Block a user