Browse Source

Fix borken sfpi__import()

Alois Mahdal 5 years ago
parent
commit
22f1683767
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/include-bash/sfpi.sh

+ 2
- 2
src/include-bash/sfpi.sh View File

@@ -110,12 +110,12 @@ sfpi__import() {
110 110
     #
111 111
     __sfpi__ckpfx
112 112
     local plg=$1
113
-    local mod"${SFPI__PREFIX}_${plg}"=
113
+    local mod="${SFPI__PREFIX}_${plg}"
114 114
     shellfu try_import "$mod" || {
115 115
         warn "module for plugin not found: $mod"
116 116
         return 3
117 117
     }
118
-    sfpi__is_compat "$mod" || {
118
+    sfpi__is_compat "$plg" || {
119 119
         warn "module not compatible: $mod"
120 120
         return 3
121 121
     }