diff options
author | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2016-01-16 13:44:23 +0100 |
---|---|---|
committer | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2016-01-16 13:44:23 +0100 |
commit | 983e170f20cfafadab7fb74bf5ca5b56e54205db (patch) | |
tree | 25b39449dcbf0636b5519c3beac2ec70b04510c1 /util/hz | |
parent | 72353bf0446901f1711cba7a2e50dbce9bd06227 (diff) | |
parent | f66c6bfebfd48274c9b29cd62b1fac933c6530e4 (diff) | |
download | volse-hubzilla-983e170f20cfafadab7fb74bf5ca5b56e54205db.tar.gz volse-hubzilla-983e170f20cfafadab7fb74bf5ca5b56e54205db.tar.bz2 volse-hubzilla-983e170f20cfafadab7fb74bf5ca5b56e54205db.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'util/hz')
-rwxr-xr-x | util/hz | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -12,7 +12,7 @@ echo " USER=youruserame " echo " PASS=yourpass" echo " HUB=your.hub.domain.org" echo -echo "Type \"hz\" (with or without a conf file as an arg), then enter your message. Hit ENTER to send." +echo "Type \"hz\" (with or without a conf file as an arg), then enter your message. Use ctrl-D to send.." } @@ -29,8 +29,10 @@ CUR=`which curl` [ "$PASS" ] || { echo "no PASS"; usage; exit 1; } [ "$HUB" ] || { echo "no HUB"; usage; exit 1; } -echo "enter your message to be posted as $USER @ $HUB, then hit ENTER to send:" +echo "enter your message to be posted as $USER @ $HUB, then hit Ctrl-D to send." -(read MSG; curl -ssl -u${USER}:${PASS} --data-urlencode "status=${MSG}" https://${HUB}/api/statuses/update ) +MSG=$(cat) + +curl -ssl -u${USER}:${PASS} --data-urlencode "status=${MSG}" https://${HUB}/api/statuses/update |