diff options
author | Peter Simons <simons@cryp.to> | 2016-02-12 13:24:25 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2016-02-12 13:24:25 +0100 |
commit | bd42510e49f3f8baf76bcea0018b7639b7f6cabd (patch) | |
tree | a205f10ecf8c521af3ff5bd0790b37b6f713c6c3 | |
parent | b3e8d72770b4100843c60b35633e529e6e69d543 (diff) |
nix-profile.sh.in: quote use of $HOME in shell arguments
All other places in the script do this already, so let's be consistent.
-rw-r--r-- | scripts/nix-profile.sh.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/nix-profile.sh.in b/scripts/nix-profile.sh.in index 672d1f035..6e70b81df 100644 --- a/scripts/nix-profile.sh.in +++ b/scripts/nix-profile.sh.in @@ -11,8 +11,8 @@ if [ -n "$HOME" ]; then export PATH=$NIX_LINK/bin:$NIX_LINK/sbin:$PATH # Subscribe the user to the Nixpkgs channel by default. - if [ ! -e $HOME/.nix-channels ]; then - echo "https://nixos.org/channels/nixpkgs-unstable nixpkgs" > $HOME/.nix-channels + if [ ! -e "$HOME/.nix-channels" ]; then + echo "https://nixos.org/channels/nixpkgs-unstable nixpkgs" > "$HOME/.nix-channels" fi # Append ~/.nix-defexpr/channels/nixpkgs to $NIX_PATH so that |