Skip to content

Commit bae856b

Browse files
authored
Merge pull request #395 from tjex/master
fix: if statement breaking copy() and ccopy() on macos
2 parents d509ad6 + 7540ba5 commit bae856b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

share/cht.sh.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ cmd_cd() {
559559
}
560560

561561
cmd_copy() {
562-
if [ -z "$DISPLAY" ]; then
562+
if [ -z "$DISPLAY" ] && [ "$is_macos" != yes ]; then
563563
echo copy: supported only in the Desktop version
564564
elif [ -z "$input" ]; then
565565
echo copy: Make at least one query first.
@@ -579,7 +579,7 @@ cmd_copy() {
579579
}
580580

581581
cmd_ccopy() {
582-
if [ -z "$DISPLAY" ]; then
582+
if [ -z "$DISPLAY" ] && [ "$is_macos" != yes ]; then
583583
echo copy: supported only in the Desktop version
584584
elif [ -z "$input" ]; then
585585
echo copy: Make at least one query first.

0 commit comments

Comments
 (0)