File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1717
1818* fix using backspace as first key-press in password prompt
1919* fix unnecessary logging to a file named ` log ` when using ` msu ` in a shebang
20- * fix listing external libraries, when directory at ` ${MSU_EXTERNAL_LIB} ` does ** not** exist
20+ * fix listing external modules, when directory at ` ${MSU_EXTERNAL_LIB} ` does ** not** exist
21+ * fix listing internal modules i.e. only list the ` *.sh ` files
2122
2223
2324## [ 0.1.0] [ 0.1.0 ] - 13/02/2016
Original file line number Diff line number Diff line change @@ -275,7 +275,8 @@ function list_modules() {
275275 # list internal modules, if allowed
276276 [[ " ${internal} " == " true" ]] && {
277277 echo -e " \n${clr_white} internal modules${clr_reset} "
278- output " $( ls " ${MSU_LIB} " ) "
278+ # shellcheck disable=SC2010
279+ output " $( ls " ${MSU_LIB} " | grep -E " \.sh$" ) "
279280 }
280281
281282 # list external modules, if allowed
Original file line number Diff line number Diff line change @@ -180,6 +180,7 @@ function new_mod() {
180180 run list_modules
181181 echo " ${output} " | grep " internal modules"
182182 echo " ${output} " | grep " console"
183+ ! echo " ${output} " | grep " get-latest-version.py"
183184 echo " ${output} " | grep " external modules"
184185 echo " ${output} " | grep " a-stupid-module-ofcos"
185186 run list_modules --internal
You can’t perform that action at this time.
0 commit comments