瀏覽代碼

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)