diff --git a/install-nix.sh b/install-nix.sh index d6a09c9..5388092 100755 --- a/install-nix.sh +++ b/install-nix.sh @@ -1,8 +1,8 @@ #!/usr/bin/env bash set -euo pipefail -if type -p nix &>/dev/null ; then - echo "Aborting: Nix is already installed at $(type -p nix)" +if nix_path="$(type -p nix)" ; then + echo "Aborting: Nix is already installed at ${nix_path}" exit fi