Commit 5cb5aabe authored by phil's avatar phil

add an install oneliner

parent a453d3d6
......@@ -3,6 +3,15 @@ PubSub
A no fluff, no dependencies publish and subscribe command line utility written
in shell.
* Install
Since installing software by running unstrusted shell scripts from the
internet has become quite popular over the last years, here you are...
#+BEGIN_SRC shell
curl https://gitlab.200ok.ch/200ok/pubsub/raw/master/install.sh | bash
#+END_SRC
* Usage
** Publish
......
#!/bin/bash
set -x
set -eIou pipefail
SOURCE=https://gitlab.200ok.ch/200ok/pubsub/raw/master
TARGET=${TARGET:-$HOME/bin}
mkdir -p "${TARGET}"
FILES=(publish subscribe)
for FILE in "${FILES[@]}"; do
wget -O "${TARGET}/${FILE}" "${SOURCE}/$FILE"
chmod a+x "${TARGET}/${FILE}"
done
echo 'Happy pubsubing!'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment