From d53735c82333b7034ef9d7861c7cb76dfc34efdc Mon Sep 17 00:00:00 2001 From: Jeff Ramnani Date: Wed, 11 Feb 2015 12:39:14 -0600 Subject: [PATCH] Nix install script failed when "cd" printed to stdout. In some cases the bash builtin command "cd" can print the variable $CWD to stdout. This caused the install script to fail while copying files because the source path was wrong. Fixes #476. --- scripts/install-nix-from-closure.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install-nix-from-closure.sh b/scripts/install-nix-from-closure.sh index c9ba9a2a2..a1d8608e4 100644 --- a/scripts/install-nix-from-closure.sh +++ b/scripts/install-nix-from-closure.sh @@ -41,7 +41,7 @@ mkdir -p $dest/store echo -n "copying Nix to $dest/store..." >&2 -for i in $(cd $self/store && echo *); do +for i in $(cd $self/store >/dev/null && echo *); do echo -n "." >&2 i_tmp="$dest/store/$i.$$" if [ -e "$i_tmp" ]; then