aboutsummaryrefslogtreecommitdiff
path: root/scripts/install-nix-from-closure.sh
diff options
context:
space:
mode:
authorJeff Ramnani <jeff@jefframnani.com>2015-02-11 12:39:14 -0600
committerJeff Ramnani <jeff@jefframnani.com>2015-02-11 12:39:14 -0600
commitd53735c82333b7034ef9d7861c7cb76dfc34efdc (patch)
treead75fef9c26785ab2e813d6cbe65509a519b36f1 /scripts/install-nix-from-closure.sh
parentb4e7eec16a77fa51ae38472d5f518528b18fcc9b (diff)
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.
Diffstat (limited to 'scripts/install-nix-from-closure.sh')
-rw-r--r--scripts/install-nix-from-closure.sh2
1 files changed, 1 insertions, 1 deletions
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