Przeglądaj źródła

Improve subcommand listing for help string

Alois Mahdal 10 lat temu
rodzic
commit
8470af0975
1 zmienionych plików z 7 dodań i 2 usunięć
  1. 7
    2
      src/bin/saturnin.skel

+ 7
- 2
src/bin/saturnin.skel Wyświetl plik

32
     echo ""
32
     echo ""
33
     echo "valid sub-commands:"
33
     echo "valid sub-commands:"
34
     echo ""
34
     echo ""
35
-    ls "$SATURNIN_LIBEXEC" \
36
-      | sed -e 's/saturnin-/    /'
35
+    find "$SATURNIN_LIBEXEC" \
36
+        -mindepth 1 \
37
+        -maxdepth 1 \
38
+        -executable \
39
+      | sed -e 's/.*saturnin-/    /' \
40
+      | sort
41
+    return "$FFOO_EXIT_OK"
37
 }
42
 }
38
 
43
 
39
 version_info() {
44
 version_info() {