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:
Diego Zamboni 2020-08-24 14:42:45 +02:00
parent e3750dbf66
commit 394c9b5a70

View file

@ -31,7 +31,7 @@ shift $((OPTIND-1))
[ -t 0 ] && str="$*" || str=$(cat) [ -t 0 ] && str="$*" || str=$(cat)
# Fix incompatible terminals that cause odd 'not a valid terminal' errors # 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 if [ $daemon ]; then
emacsclient -a "" \ emacsclient -a "" \