mirror of
https://github.com/cachix/install-nix-action.git
synced 2024-11-22 00:20:53 +00:00
refactor: Simplify appending to file
Avoids one extra command, and removes the need for `tee`.
This commit is contained in:
parent
ef4bcbc79c
commit
ac5ee67104
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue