~reykjalin/public-inbox

tday: Using parameter testing for $EDITOR v1 APPLIED

Ariadna Vigo: 1
 Using parameter testing for $EDITOR

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~reykjalin/public-inbox/patches/21320/mbox | git am -3
Learn more about email & git

[PATCH tday] Using parameter testing for $EDITOR Export this patch

---
 tday | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tday b/tday
index ea74cc9..9f4e749 100755
--- a/tday
+++ b/tday
@@ -15,7 +15,7 @@ cmd=${1:-}

case ${cmd} in
	edit)
		${EDITOR} ${curr_file} || nano ${curr_file}
		${EDITOR:-nano} ${curr_file}
		;;
	incomplete)
		cat $(ls -d ${storage}/*.tday) | sort -r | grep '^o'
-- 
2.31.0
I’ve applied the patch!
Thank you for the contribution :)

--
Kristófer R.