Explorar o código

Include PERL files

Samuel W. Flint %!s(int64=8) %!d(string=hai) anos
pai
achega
def92fbd65
Modificáronse 1 ficheiros con 8 adicións e 2 borrados
  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
 }