Commit be1c8f95 authored by toastal's avatar toastal
Browse files

nix-prefetch-darcs: print status to stderr

• /dev/tty can’t be redirected
• also fix up 1 mismatching indentation
parent 41f80e21
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -127,11 +127,7 @@ if [ -z "$final_path" ]; then

	cd "$tmp_clone"
	# Do not print Darcs progress to stdout (else stdout isn’t parsable JSON)
	if [ -t 1 ]; then
		darcs clone $clone_args "$repository" "$name" >/dev/tty
	else
		darcs clone $clone_args "$repository" "$name" >/dev/null
	fi
	darcs clone "$clone_args" "$repository" "$name" 1>&2
	# Will put the current Darcs context into the store.
	new_context="$tmp_clone/${name}-context.txt"
	darcs log --repodir="$tmp_clone/$name" --context > "$new_context"