소스 검색

Don't do anything when xcp() is run without arguments

Alois Mahdal 1 개월 전
부모
커밋
42b21c1585
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1
    0
      dotfiles/config/bashum/main.bashrc

+ 1
- 0
dotfiles/config/bashum/main.bashrc 파일 보기

@@ -633,6 +633,7 @@ xcp() {
633 633
     # Copy paths of $@ to clipboard
634 634
     #
635 635
     local path
636
+    test $# -gt 0 || return 0
636 637
     find "$@" -maxdepth 0 -mindepth 0 \
637 638
       | while read -r path; do
638 639
             readlink -e "$path"