From cbe11ae926aa41608c66e03ce317ba166a48555f Mon Sep 17 00:00:00 2001 From: Misaka Mikoto Date: Mon, 3 Jun 2019 21:21:11 +1000 Subject: [PATCH] bin/org-capture POSIX compliance --- bin/org-capture | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/org-capture b/bin/org-capture index d04d2e971..033604086 100755 --- a/bin/org-capture +++ b/bin/org-capture @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh # Open an org-capture popup frame from the shell. This opens a temporary emacs # daemon if emacs isn't already running. @@ -30,7 +30,7 @@ shift $((OPTIND-1)) [ -t 0 ] && str="$*" || str=$(cat) -if [[ $daemon ]]; then +if [ $daemon ]; then emacsclient -a "" \ -c -F '((name . "org-capture") (width . 70) (height . 25) (transient . t))' \ -e "(+org-capture/open-frame \"$str\" ${key:-nil})"