1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-11-22 01:40:48 +03:00

fix: if statement breaking copy() and ccopy() on macos

This commit is contained in:
tjex 2023-12-11 15:19:40 +01:00
parent 571377f2f7
commit 7540ba5de7

View File

@ -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.