Explorar el Código

Stop stomping 'mname' global

Define it as local and keep it.
Alois Mahdal hace 5 años
padre
commit
ff4a9a4745
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1
    0
      src/shellfu.sh.skel

+ 1
- 0
src/shellfu.sh.skel Ver fichero

@@ -185,6 +185,7 @@ shellfu() {
185 185
             # Show version of module named $1
186 186
             #
187 187
             local mname=$1
188
+            local mpath
188 189
             mpath=$(shellfu _select_mfile "$mname") || {
189 190
                 shellfu __warn "cannot find module: $mname"
190 191
                 return 3