Skip to content

Commit

Permalink
update Go install instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
aybabtme committed Jan 5, 2023
1 parent 8875f37 commit 2d4dc1e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Read logs from `stdin` and prints them back to `stdout`, but prettier.
## With Go installed

```bash
$ go get -u github.com/humanlogio/humanlog/...
$ go install github.com/humanlogio/humanlog/cmd/humanlog@latest
```

## On linux
Expand Down
2 changes: 1 addition & 1 deletion script/README.tmpl.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Read logs from `stdin` and prints them back to `stdout`, but prettier.
## With Go installed

```bash
$ go get -u github.com/humanlogio/humanlog/...
$ go install github.com/humanlogio/humanlog/cmd/humanlog@latest
```

## On linux
Expand Down
19 changes: 19 additions & 0 deletions script/update_readme.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

basedir=$(git rev-parse --show-toplevel)

usage() {
echo "USAGE: update_readme.sh [version]"
exit 1
}

version=$1
if [ "$version" = "" ]; then
echo "Need to specify a version!"
usage
fi


set -e -u -x

temple file < ${basedir}/script/README.tmpl.md > ${basedir}/README.md -var "version=$version"

0 comments on commit 2d4dc1e

Please sign in to comment.