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.
This commit is contained in:
Peter Simons 2016-02-12 13:24:25 +01:00
parent b3e8d72770
commit bd42510e49

View file

@ -11,8 +11,8 @@ if [ -n "$HOME" ]; then
export PATH=$NIX_LINK/bin:$NIX_LINK/sbin:$PATH export PATH=$NIX_LINK/bin:$NIX_LINK/sbin:$PATH
# Subscribe the user to the Nixpkgs channel by default. # Subscribe the user to the Nixpkgs channel by default.
if [ ! -e $HOME/.nix-channels ]; then if [ ! -e "$HOME/.nix-channels" ]; then
echo "https://nixos.org/channels/nixpkgs-unstable nixpkgs" > $HOME/.nix-channels echo "https://nixos.org/channels/nixpkgs-unstable nixpkgs" > "$HOME/.nix-channels"
fi fi
# Append ~/.nix-defexpr/channels/nixpkgs to $NIX_PATH so that # Append ~/.nix-defexpr/channels/nixpkgs to $NIX_PATH so that