From ac5ee67104b4f4e15e0bbb93d75f18fdc9f93431 Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Thu, 9 Mar 2023 10:26:30 +1300 Subject: [PATCH] refactor: Simplify appending to file Avoids one extra command, and removes the need for `tee`. --- install-nix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-nix.sh b/install-nix.sh index 5388092..089ff6a 100755 --- a/install-nix.sh +++ b/install-nix.sh @@ -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"