Skip to content

Commit

Permalink
Fix parsing of RELEASE file in install script
Browse files Browse the repository at this point in the history
  • Loading branch information
rickynils committed Sep 20, 2020
1 parent 781fc16 commit 5b13539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nix-quick-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sudo install -d -o "$USER" /nix

# Fetch and unpack nix
sys="x86_64-linux" # TODO auto detect
rel="$(cat "$RELEASE_FILE")"
rel="$(head -n1 "$RELEASE_FILE")"
url="${NIX_ARCHIVES_URL:-https://github.com/nixbuild/nix-quick-install-action/releases/download/$rel}/nix-$NIX_VERSION-$sys.tar.zstd"

curl -sL --retry 3 --retry-connrefused "$url" | zstdcat | \
Expand Down

0 comments on commit 5b13539

Please sign in to comment.