Skip to content
Snippets Groups Projects
Unverified Commit 99843f32 authored by Julian Ospald's avatar Julian Ospald :tea:
Browse files

Fix edo in bootstrap-haskell

This seems to have caused occasional weird
side-effects on the following line:

  edo curl https://raw.githubusercontent.com/haskell/ghcup/master/ghcup > "${HOME}"/.ghcup/bin/ghcup
  ...
  edo ghcup install

It would result in:

  ~/.ghcup/bin/ghcup: line 1: $'\E[0': command not found
  ~/.ghcup/bin/ghcup: line 1: 35mcurl: command not found

which seems to be because of printf and the piping command.
It's not entirely clear to me what happens here, but it
seems part of the printf output to stdout where mixed
with the next command.
parent b60e546e
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ die() {
edo()
{
printf "\\033[0;35m%s\\033[0m\\n" "$*"
(>&2 printf "\\033[0;35m%s\\033[0m\\n" "$*")
"$@" || exit 2
}
......
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