Procházet zdrojové kódy

Let pod list grep without external pipe

Samuel W. Flint před 1 rokem
rodič
revize
c40b12b67b
1 změnil soubory, kde provedl 10 přidání a 2 odebrání
  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)