Skip to content

Commit

Permalink
fix wrong filename when skip module
Browse files Browse the repository at this point in the history
  • Loading branch information
kamontat committed Sep 15, 2020
1 parent 08750bc commit a3d2403
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ _myzs:private:core:load-module() {
myzs:pg:mark "${module_type}" "Loading ${module_name}"

if _myzs:internal:checker:fully-type || [[ $module_name =~ "alias" ]]; then
_myzs:internal:module:load "${module_key}" "$module_fullpath" || myzs:pg:mark-fail "Cannot load $module_fullpath"
_myzs:internal:module:load "${module_key}" || myzs:pg:mark-fail "Cannot load $module_fullpath"
else
myzs:pg:mark-fail "cannot load ${module_key} when TYPE=$__MYZS__TYPE"
fi
else
_myzs:internal:log:warn "skipping module ${module_key}"
_myzs:internal:module:skip "${module_key}"
_myzs:internal:log:warn "skipping module ${module_key}"
fi

_myzs:internal:completed
Expand Down

0 comments on commit a3d2403

Please sign in to comment.