diff options
author | redmatrix <git@macgirvin.com> | 2016-01-15 11:59:38 -0800 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-01-15 11:59:38 -0800 |
commit | f66c6bfebfd48274c9b29cd62b1fac933c6530e4 (patch) | |
tree | 9dcdfd91f93d1b2b5aec00a734a797bd1955c79f /util/hz | |
parent | fe77ab4d71ed86d8c29a43ae2bc579a0db8b84b1 (diff) | |
parent | 2498df68c716ec6ed80b5547c721ca9741a85572 (diff) | |
download | volse-hubzilla-f66c6bfebfd48274c9b29cd62b1fac933c6530e4.tar.gz volse-hubzilla-f66c6bfebfd48274c9b29cd62b1fac933c6530e4.tar.bz2 volse-hubzilla-f66c6bfebfd48274c9b29cd62b1fac933c6530e4.zip |
Merge https://github.com/redmatrix/hubzilla into pending_merge
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 |