From 7540ba5de7a7174c10f312898311bedaf0a5e7ae Mon Sep 17 00:00:00 2001 From: tjex Date: Mon, 11 Dec 2023 15:19:40 +0100 Subject: [PATCH] fix: if statement breaking copy() and ccopy() on macos --- share/cht.sh.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/cht.sh.txt b/share/cht.sh.txt index 2f662aca..569d975d 100755 --- a/share/cht.sh.txt +++ b/share/cht.sh.txt @@ -559,7 +559,7 @@ cmd_cd() { } cmd_copy() { - if [ -z "$DISPLAY" ]; then + if [ -z "$DISPLAY" ] && [ "$is_macos" != yes ]; then echo copy: supported only in the Desktop version elif [ -z "$input" ]; then echo copy: Make at least one query first. @@ -579,7 +579,7 @@ cmd_copy() { } cmd_ccopy() { - if [ -z "$DISPLAY" ]; then + if [ -z "$DISPLAY" ] && [ "$is_macos" != yes ]; then echo copy: supported only in the Desktop version elif [ -z "$input" ]; then echo copy: Make at least one query first.