1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-11-22 01:40:48 +03:00
This commit is contained in:
Tillman Jex 2024-11-18 16:10:19 +08:00 committed by GitHub
commit adb358e53a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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.