From 33f81ca52aaa6d15203bad2b68b4acd11584e2fe Mon Sep 17 00:00:00 2001 From: Jesse Rosenthal Date: Thu, 13 May 2010 15:10:10 -0400 Subject: [PATCH] Simplify script. Don't read the whole thing into a variable on the search. --- remoteusage.mdwn | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 } -- 2.43.0