ci: shellcheck nits
This commit is contained in:
@@ -21,11 +21,12 @@ if [ ! -d "${DIR_LLS}" ]; then
|
||||
fi
|
||||
|
||||
# execute from within the lua-language-server directory as it expects specific file locations
|
||||
cd "${DIR_LLS}"
|
||||
cd "${DIR_LLS}" || exit
|
||||
OUT=$("${DIR_LLS}/bin/lua-language-server" --checklevel=Information --check "${DIR_SRC}" --logpath="${DIR_OUT}" --loglevel=error)
|
||||
RC=$?
|
||||
|
||||
echo "${OUT}" >&2
|
||||
|
||||
RC=$?
|
||||
if [ $RC -ne 0 ]; then
|
||||
echo "failed with RC=$RC"
|
||||
exit $RC
|
||||
|
||||
@@ -38,7 +38,7 @@ sed -i -e "/${begin}/,/${end}/{ /${begin}/{p; r /tmp/DEFAULT_ON_ATTACH.lua
|
||||
# help human
|
||||
echo > /tmp/DEFAULT_ON_ATTACH.help
|
||||
sed -E "s/^ *vim.keymap.set\('n', '(.*)',.*api(.*),.*opts\('(.*)'.*$/'\`\1\`' '\3' '|nvim-tree-api\2()|'/g
|
||||
" /tmp/DEFAULT_ON_ATTACH.lua | while read line
|
||||
" /tmp/DEFAULT_ON_ATTACH.lua | while read -r line
|
||||
do
|
||||
eval "printf '%-17.17s %-26.26s %s\n' ${line}" >> /tmp/DEFAULT_ON_ATTACH.help
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user