mirror of
https://github.com/cachix/install-nix-action.git
synced 2024-11-21 16:10:52 +00:00
commit
661bbdf5ce
1 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,11 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
if type -p nix &>/dev/null ; then
|
||||||
|
echo "Aborting: Nix is already installed at $(type -p nix)"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
# Configure Nix
|
# Configure Nix
|
||||||
add_config() {
|
add_config() {
|
||||||
echo "$1" | sudo tee -a /tmp/nix.conf >/dev/null
|
echo "$1" | sudo tee -a /tmp/nix.conf >/dev/null
|
||||||
|
|
Loading…
Reference in a new issue