Skip to content
Snippets Groups Projects
Commit bd42510e authored by Peter Simons's avatar Peter Simons
Browse files

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.
parent b3e8d727
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment