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