mirror of
https://github.com/cachix/install-nix-action.git
synced 2024-11-22 00:20:53 +00:00
Drop use of sudo when tee'ing nix.conf
sudo has stuck around since the early days of this repo when /etc/nix/nix.conf
was being created/mutated and required `sudo`. This was changed to a different/local
file where sudo is no longer needed in commit 642cfa0200
.
This commit is contained in:
parent
5d66827b21
commit
76107d4eb5
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ fi
|
||||||
|
|
||||||
# Configure Nix
|
# Configure Nix
|
||||||
add_config() {
|
add_config() {
|
||||||
echo "$1" | sudo tee -a /tmp/nix.conf >/dev/null
|
echo "$1" | tee -a /tmp/nix.conf >/dev/null
|
||||||
}
|
}
|
||||||
# Set jobs to number of cores
|
# Set jobs to number of cores
|
||||||
add_config "max-jobs = auto"
|
add_config "max-jobs = auto"
|
||||||
|
|
Loading…
Reference in a new issue