refactor: Simplify appending to file

Avoids one extra command, and removes the need for `tee`.
This commit is contained in:
Victor Engmark 2023-03-09 10:26:30 +13:00
parent ef4bcbc79c
commit ac5ee67104

View file

@ -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"