From 394c9b5a704471df74e820cc1e1e6b127380846f Mon Sep 17 00:00:00 2001 From: Diego Zamboni Date: Mon, 24 Aug 2020 14:42:45 +0200 Subject: [PATCH] Fix string comparison in TERM check Script was using -eq, which is a numeric comparison, and was producing an "integer expression expected" error. Changed to =, the string comparison operator. --- bin/org-capture | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/org-capture b/bin/org-capture index 573ed6212..f298b5b60 100755 --- a/bin/org-capture +++ b/bin/org-capture @@ -31,7 +31,7 @@ shift $((OPTIND-1)) [ -t 0 ] && str="$*" || str=$(cat) # Fix incompatible terminals that cause odd 'not a valid terminal' errors -[ $TERM -eq "alacritty" ] && export TERM=xterm-256color +[ $TERM = "alacritty" ] && export TERM=xterm-256color if [ $daemon ]; then emacsclient -a "" \