summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md3
-rwxr-xr-xbin/setup4
2 files changed, 5 insertions, 2 deletions
diff --git a/README.md b/README.md
index f3de14a6..78d3e352 100644
--- a/README.md
+++ b/README.md
@@ -5,6 +5,7 @@ HackMD
[![Join the chat at https://gitter.im/hackmdio/hackmd][gitter-image]][gitter-url]
[![build status][travis-image]][travis-url]
+[![version][github-version-badge]][github-release-page]
HackMD lets you create realtime collaborative markdown notes on all platforms.
@@ -233,5 +234,7 @@ See more at [http://operational-transformation.github.io/](http://operational-tr
[gitter-url]: https://gitter.im/hackmdio/hackmd?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
[travis-image]: https://travis-ci.org/hackmdio/hackmd.svg?branch=master
[travis-url]: https://travis-ci.org/hackmdio/hackmd
+[github-version-badge]: https://img.shields.io/github/release/hackmdio/hackmd.svg
+[github-release-page]: https://github.com/hackmdio/hackmd/releases
[standardjs-image]: https://cdn.rawgit.com/feross/standard/master/badge.svg
[standardjs-url]: https://github.com/feross/standard
diff --git a/bin/setup b/bin/setup
index 3f143cd3..3edffc49 100755
--- a/bin/setup
+++ b/bin/setup
@@ -5,7 +5,7 @@ set -e
# run command at repo root
CURRENT_PATH=$PWD
if [ -d .git ]; then
- cd $(git rev-parse --show-toplevel)
+ cd "$(git rev-parse --show-toplevel)"
fi
if ! type npm > /dev/null
@@ -43,4 +43,4 @@ Read more info at https://github.com/hackmdio/hackmd#configuration-files
EOF
# change directory back
-cd $CURRENT_PATH
+cd "$CURRENT_PATH"