X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=remoteusage.mdwn;h=fd6ecdf272ec9ed9a854d292c3dcd8a985e43e8a;hb=bfe94051ca5ed3d26ef3378d6ec37c1985029a86;hp=968978e154423f7c6cd30c63caf9f36b7c853bb0;hpb=33f81ca52aaa6d15203bad2b68b4acd11584e2fe;p=notmuch-wiki diff --git a/remoteusage.mdwn b/remoteusage.mdwn index 968978e..fd6ecdf 100644 --- a/remoteusage.mdwn +++ b/remoteusage.mdwn @@ -59,10 +59,9 @@ be necessary in the furture. notmuch_run () { if [ $1 = "search" ]; then - $SSH_BIN $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN $@ | while read line; do + $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 $@ @@ -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 }