Просмотр исходного кода

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

Alois Mahdal 1 месяц назад
Родитель
Сommit
42b21c1585
1 измененных файлов: 1 добавлений и 0 удалений
  1. 1
    0
      dotfiles/config/bashum/main.bashrc

+ 1
- 0
dotfiles/config/bashum/main.bashrc Просмотреть файл

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