Squashed 'gitstatus/' changes from 32b7b674..6a4f0fc0

6a4f0fc0 add missing \n in error messages
d2fd0166 update build instructions

git-subtree-dir: gitstatus
git-subtree-split: 6a4f0fc0cadc214bbe4051bf87d87033558aeed8
This commit is contained in:
romkatv 2020-05-10 17:44:24 +02:00
commit bc85e46f8b
2 changed files with 6 additions and 3 deletions

View file

@ -209,13 +209,13 @@ END
if command -v curl >/dev/null 2>&1; then
if ! err="$(command curl -fsSLo "$archive" -- "$url" 2>&1)"; then
>&2 echo "[gitstatus] error: failed to download gitstatusd: $url"
>&2 printf "%s" "$err"
>&2 printf "%s\n" "$err"
return 1
fi
elif command -v wget >/dev/null 2>&1; then
if ! err="$(command wget -O "$archive" -- "$url" 2>&1)"; then
>&2 echo "[gitstatus] error: failed to download gitstatusd: $url"
>&2 printf "%s" "$err"
>&2 printf "%s\n" "$err"
return 1
fi
else