]> git.cworth.org Git - notmuch-wiki/commitdiff
Simplify script.
authorJesse Rosenthal <jrosenthal@jhu.edu>
Thu, 13 May 2010 19:10:10 +0000 (15:10 -0400)
committerJesse Rosenthal <jrosenthal@jhu.edu>
Thu, 13 May 2010 19:10:10 +0000 (15:10 -0400)
Don't read the whole thing into a variable on the search.

remoteusage.mdwn

index 6492ddedc01efcbd6c9191b39e05241995ed873f..968978e154423f7c6cd30c63caf9f36b7c853bb0 100644 (file)
@@ -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
     }