Skip to content

Commit

Permalink
Squashed 'gitstatus/' changes from 32b7b674..6a4f0fc0
Browse files Browse the repository at this point in the history
6a4f0fc0 add missing \n in error messages
d2fd0166 update build instructions

git-subtree-dir: gitstatus
git-subtree-split: 6a4f0fc0cadc214bbe4051bf87d87033558aeed8
  • Loading branch information
romkatv committed May 10, 2020
1 parent 0acaefe commit bc85e46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,9 @@ want to build in docker (`-d docker`) or to allow automatic downloading of libgi

The following code should work. If it doesn't, please open an issue.

**IMPORTANT:** *Change version to what you want to package. This example doesn't get updated when
new versions are released.*

```zsh
curl -fsSLO https://github.com/romkatv/gitstatus/archive/v1.0.0.tar.gz
tar -xzf v1.0.0.tar.gz
Expand All @@ -485,7 +488,7 @@ cd gitstatus-1.0.0
)
./build
rm deps/libgit2-*.tar.gz
for file in gitstatus.plugin.zsh gitstatus.prompt.zsh install; do
for file in *.zsh install; do
zsh -fc "zcompile -R -- $file.zwc $file"
done
```
Expand Down
4 changes: 2 additions & 2 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc85e46

Please sign in to comment.