mirror of
https://github.com/chubin/cheat.sh.git
synced 2026-06-20 13:16:44 +02:00
Merge pull request #395 from tjex/master
fix: if statement breaking copy() and ccopy() on macos
This commit is contained in:
+2
-2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user