Skip to content

Commit

Permalink
fix shellcheck warnings
Browse files Browse the repository at this point in the history
It's unlikely that those env vars will contain whitespaces, but it's
good to keep the script clean.
  • Loading branch information
zimbatm committed Dec 22, 2020
1 parent e6685ea commit 2e278de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/install-nix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ if [[ $OSTYPE =~ darwin ]]; then

# macOS needs certificates hints
cert_file=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt
echo "NIX_SSL_CERT_FILE=$cert_file" >> $GITHUB_ENV
echo "NIX_SSL_CERT_FILE=$cert_file" >> "$GITHUB_ENV"
export NIX_SSL_CERT_FILE=$cert_file
sudo launchctl setenv NIX_SSL_CERT_FILE "$cert_file"
fi

# Set paths
echo "/nix/var/nix/profiles/per-user/$USER/profile/bin" >> $GITHUB_PATH
echo "/nix/var/nix/profiles/default/bin" >> $GITHUB_PATH
echo "/nix/var/nix/profiles/per-user/$USER/profile/bin" >> "$GITHUB_PATH"
echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH"

if [[ $INPUT_NIX_PATH != "" ]]; then
echo "NIX_PATH=${INPUT_NIX_PATH}" >> $GITHUB_ENV
echo "NIX_PATH=${INPUT_NIX_PATH}" >> "$GITHUB_ENV"
fi

0 comments on commit 2e278de

Please sign in to comment.