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:
parent
571377f2f7
commit
7540ba5de7
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user