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.
This commit is contained in:
parent
e3750dbf66
commit
394c9b5a70
1 changed files with 1 additions and 1 deletions
|
@ -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 "" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue