From 2e278dead160b75f7bd45e0adeb40619db45f2a1 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Tue, 22 Dec 2020 20:11:29 +0100 Subject: [PATCH] fix shellcheck warnings It's unlikely that those env vars will contain whitespaces, but it's good to keep the script clean. --- lib/install-nix.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/install-nix.sh b/lib/install-nix.sh index d4a3b9a..cc69997 100755 --- a/lib/install-nix.sh +++ b/lib/install-nix.sh @@ -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