summaryrefslogtreecommitdiff
path: root/remoteusage.mdwn
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2010-05-13 15:10:10 -0400
committerJesse Rosenthal <jrosenthal@jhu.edu>2010-05-13 15:10:10 -0400
commit33f81ca52aaa6d15203bad2b68b4acd11584e2fe (patch)
tree344360cd3d4b70214875a75e821143bfa7955c06 /remoteusage.mdwn
parent9e7222968ee53eb751de40f4dee571684b483fcf (diff)
Simplify script.
Don't read the whole thing into a variable on the search.
Diffstat (limited to 'remoteusage.mdwn')
-rw-r--r--remoteusage.mdwn12
1 files 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
}