mirror of
https://github.com/cachix/install-nix-action.git
synced 2024-11-21 16:10:52 +00:00
fix shellcheck warnings
It's unlikely that those env vars will contain whitespaces, but it's good to keep the script clean.
This commit is contained in:
parent
e6685eaf1d
commit
2e278dead1
1 changed files with 4 additions and 4 deletions
|
@ -40,15 +40,15 @@ if [[ $OSTYPE =~ darwin ]]; then
|
||||||
|
|
||||||
# macOS needs certificates hints
|
# macOS needs certificates hints
|
||||||
cert_file=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt
|
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
|
export NIX_SSL_CERT_FILE=$cert_file
|
||||||
sudo launchctl setenv NIX_SSL_CERT_FILE "$cert_file"
|
sudo launchctl setenv NIX_SSL_CERT_FILE "$cert_file"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set paths
|
# Set paths
|
||||||
echo "/nix/var/nix/profiles/per-user/$USER/profile/bin" >> $GITHUB_PATH
|
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/default/bin" >> "$GITHUB_PATH"
|
||||||
|
|
||||||
if [[ $INPUT_NIX_PATH != "" ]]; then
|
if [[ $INPUT_NIX_PATH != "" ]]; then
|
||||||
echo "NIX_PATH=${INPUT_NIX_PATH}" >> $GITHUB_ENV
|
echo "NIX_PATH=${INPUT_NIX_PATH}" >> "$GITHUB_ENV"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue