From: Jesse Rosenthal Date: Thu, 13 May 2010 19:10:10 +0000 (-0400) Subject: Simplify script. X-Git-Url: https://git.cworth.org/git?p=notmuch-wiki;a=commitdiff_plain;h=33f81ca52aaa6d15203bad2b68b4acd11584e2fe Simplify script. Don't read the whole thing into a variable on the search. --- diff --git a/remoteusage.mdwn b/remoteusage.mdwn index 6492dde..968978e 100644 --- a/remoteusage.mdwn +++ b/remoteusage.mdwn @@ -59,13 +59,13 @@ be necessary in the furture. notmuch_run () { if [ $1 = "search" ]; then - OUT=$($SSH_BIN $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN $@) - echo "$OUT" | while read line; do - echo "$line"; - sleep 0.1; - done + $SSH_BIN $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN $@ | while read line; do + sleep 0.1 + echo "${line}" + + done else - $SSH_BIN $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN $@ + $SSH_BIN $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN $@ fi }