Pārlūkot izejas kodu

fix(installer): use full path to verify_plugins.lua (#2755)

kylo252 3 gadi atpakaļ
vecāks
revīzija
e1846580c8
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  1. 6 1
      utils/ci/verify_plugins.sh

+ 6 - 1
utils/ci/verify_plugins.sh

@@ -1,5 +1,10 @@
 #!/usr/bin/env bash
 set -e
 
+BASEDIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
+BASEDIR="$(dirname -- "$(dirname -- "$BASEDIR")")"
+
+LUNARVIM_BASE_DIR="${LUNARVIM_BASE_DIR:-"$BASEDIR"}"
+
 lvim --headless \
-  -c "luafile ./utils/ci/verify_plugins.lua"
+  -c "luafile ${LUNARVIM_BASE_DIR}/utils/ci/verify_plugins.lua"