소스 검색

Let pod list grep without external pipe

Samuel W. Flint 1 년 전
부모
커밋
c40b12b67b
1개의 변경된 파일10개의 추가작업 그리고 2개의 파일을 삭제
  1. 10 2
      pod

+ 10 - 2
pod

@@ -88,11 +88,19 @@ case "$CMD" in
         exit
         ;;
     list)
-        find_unlistened --in=here
+        if [ $# -lt 1 ] ; then
+            find_unlistened --in=here
+        else
+            find_unlistened --in=here | grep $@
+        fi
         exit
         ;;
     list-all)
-        find_unlistened
+        if [ $# -lt 1 ] ; then
+            find_unlistened
+        else
+            find_unlistened | grep $@
+        fi
         exit
         ;;
     play)