forked from lix-project/lix
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.
This commit is contained in:
parent
b4e7eec16a
commit
d53735c823
|
@ -41,7 +41,7 @@ mkdir -p $dest/store
|
||||||
|
|
||||||
echo -n "copying Nix to $dest/store..." >&2
|
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
|
echo -n "." >&2
|
||||||
i_tmp="$dest/store/$i.$$"
|
i_tmp="$dest/store/$i.$$"
|
||||||
if [ -e "$i_tmp" ]; then
|
if [ -e "$i_tmp" ]; then
|
||||||
|
|
Loading…
Reference in a new issue