mirror of
https://github.com/cachix/install-nix-action.git
synced 2024-11-24 17:38:02 +00:00
refactor: De-dupe Nix path detection
This commit is contained in:
parent
e322e039f3
commit
ef4bcbc79c
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
if type -p nix &>/dev/null ; then
|
if nix_path="$(type -p nix)" ; then
|
||||||
echo "Aborting: Nix is already installed at $(type -p nix)"
|
echo "Aborting: Nix is already installed at ${nix_path}"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue