Parcourir la source

Include PERL files

Samuel W. Flint il y a 8 ans
Parent
commit
def92fbd65
1 fichiers modifiés avec 8 ajouts et 2 suppressions
  1. 8 2
      ledger-util

+ 8 - 2
ledger-util

@@ -6,9 +6,15 @@ if [[ $# -eq 0 ]] ; then
 fi
 
 function list-utilities () {
-    for utility in ~/.ledger/utilities/*.sh ;
+    for utility in ~/.ledger/utilities/*.(sh|pl) ;
     do
-        echo " - $(basename -- ${utility} .sh)"
+        case $utility in
+            *.sh)
+                echo " - $(basename -- ${utility} .sh)"
+                ;;
+            *.pl)
+                echo " - $(basename -- ${utility} .pl)"
+        esac
     done
 }