X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=remoteusage.mdwn;h=33a0cf26b3d4bcfe87abbbac727ea215284cb672;hb=49256ba2b52af852eec496a7d7b1fac1f76650ac;hp=48aced826cc5478283fd802fca50691735af397a;hpb=1e5c1247bf095a03338f40e5a7bfaaec760a6c4b;p=notmuch-wiki diff --git a/remoteusage.mdwn b/remoteusage.mdwn index 48aced8..33a0cf2 100644 --- a/remoteusage.mdwn +++ b/remoteusage.mdwn @@ -69,7 +69,7 @@ future calls can reuse the socket. create_socket_dir () { - mkdir "${SOCKET_DIR}" + mkdir "${SOCKET_DIR}" chmod 700 "${SOCKET_DIR}" } @@ -99,13 +99,11 @@ future calls can reuse the socket. else exit 1 fi - CMD=$1 - shift printf -v ARGS "%q " "$@" - $SSH_BIN -S $SSH_SOCKET $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN ${CMD} ${ARGS} + $SSH_BIN -S $SSH_SOCKET $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN ${ARGS} } - notmuch_run $@ + notmuch_run "$@" Save this to a file, "remote-notmuch.sh", in your path.