]> git.cworth.org Git - notmuch-wiki/blobdiff - remoteusage.mdwn
And another indentation.
[notmuch-wiki] / remoteusage.mdwn
index 6492ddedc01efcbd6c9191b39e05241995ed873f..fd6ecdf272ec9ed9a854d292c3dcd8a985e43e8a 100644 (file)
@@ -59,13 +59,12 @@ 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
     }
     
@@ -81,8 +80,8 @@ be necessary in the furture.
         scp ${SSH_HOST}:${1} "${FILE_DIR}" > /dev/null 2>&1
         retcode="${?}"
         if [ "${retcode}" -ne "0" ]; then
-       echo "Failed to fetch file" 1>&2
-       exit ${retcode}
+           echo "Failed to fetch file" 1>&2
+           exit ${retcode}
         fi
     }