summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2010-04-19 16:48:10 -0400
committerJesse Rosenthal <jrosenthal@jhu.edu>2010-04-19 16:48:10 -0400
commit832300a9e0e553f6cc1a36b91dcaad143eb74d01 (patch)
tree87e3f8e13f2edfeba77306520ef740859102b63e
parent5b1a6635fa818d5a7f033419d557b939068c2c6d (diff)
Fixed indentation on shell-script on remote-usage page.
-rw-r--r--remoteusage.mdwn42
1 files changed, 21 insertions, 21 deletions
diff --git a/remoteusage.mdwn b/remoteusage.mdwn
index 0639c31..2b7dd5c 100644
--- a/remoteusage.mdwn
+++ b/remoteusage.mdwn
@@ -44,27 +44,27 @@ entries. This is currently necessary so that the emacs process-filter
doesn't chop off messages. It's an obvious hack, and hopefully won't
be necessary in the furture.
- #!/usr/bin/env bash
-
- SSH_BIN="/path/to/ssh/on/client"
- USER="user_name"
- HOST="server_name"
- NOTMUCH_REMOTE_BIN="/path/to/notmuch/on/server"
-
- if [ $1 = "search" ]; then
- COUNT=0;
- OUT=`$SSH_BIN $USER@$HOST $NOTMUCH_REMOTE_BIN $@`
- echo "$OUT" | while read line; do
- COUNT=`expr $COUNT + 1`
- echo "$line";
- if [ $COUNT = 10 ]; then
- sleep 0.1;
- fi
- done
- else
- $SSH_BIN $USER@$HOST $NOTMUCH_REMOTE_BIN $@
- fi
-
+ #!/usr/bin/env bash
+
+ SSH_BIN="/path/to/ssh/on/client"
+ USER="user_name"
+ HOST="server_name"
+ NOTMUCH_REMOTE_BIN="/path/to/notmuch/on/server"
+
+ if [ $1 = "search" ]; then
+ COUNT=0;
+ OUT=`$SSH_BIN $USER@$HOST $NOTMUCH_REMOTE_BIN $@`
+ echo "$OUT" | while read line; do
+ COUNT=`expr $COUNT + 1`
+ echo "$line";
+ if [ $COUNT = 10 ]; then
+ sleep 0.1;
+ fi
+ done
+ else
+ $SSH_BIN $USER@$HOST $NOTMUCH_REMOTE_BIN $@
+ fi
+
Save this to a file, "remote-notmuch.sh", in your path.
Now you can run "remote-notmuch.sh new". You can call the script