Skip to content

Commit df8a362

Browse files
committed
ci: shellcheck nits
1 parent 53ecb6c commit df8a362

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

scripts/lls-check

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ if [ ! -d "${DIR_LLS}" ]; then
2121
fi
2222

2323
# execute from within the lua-language-server directory as it expects specific file locations
24-
cd "${DIR_LLS}"
24+
cd "${DIR_LLS}" || exit
2525
OUT=$("${DIR_LLS}/bin/lua-language-server" --checklevel=Information --check "${DIR_SRC}" --logpath="${DIR_OUT}" --loglevel=error)
26+
RC=$?
27+
2628
echo "${OUT}" >&2
2729

28-
RC=$?
2930
if [ $RC -ne 0 ]; then
3031
echo "failed with RC=$RC"
3132
exit $RC

scripts/update-help.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ sed -i -e "/${begin}/,/${end}/{ /${begin}/{p; r /tmp/DEFAULT_ON_ATTACH.lua
3838
# help human
3939
echo > /tmp/DEFAULT_ON_ATTACH.help
4040
sed -E "s/^ *vim.keymap.set\('n', '(.*)',.*api(.*),.*opts\('(.*)'.*$/'\`\1\`' '\3' '|nvim-tree-api\2()|'/g
41-
" /tmp/DEFAULT_ON_ATTACH.lua | while read line
41+
" /tmp/DEFAULT_ON_ATTACH.lua | while read -r line
4242
do
4343
eval "printf '%-17.17s %-26.26s %s\n' ${line}" >> /tmp/DEFAULT_ON_ATTACH.help
4444
done

0 commit comments

Comments
 (0)