Skip to content

Commit

Permalink
Use ShellCheck directive to suppress false warning instead of command…
Browse files Browse the repository at this point in the history
… line option
  • Loading branch information
bwRavencl committed Jul 15, 2024
1 parent 71332d4 commit 42ef892
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ jobs:
uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/[email protected]
env:
SHELLCHECK_OPTS: -e SC1003
1 change: 1 addition & 0 deletions InstallControllerBuddy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ then
else
touch -a "$EXPORT_LUA_PATH"
local EXPORT_LUA_LINE='dofile(lfs.writedir()..[[Scripts\ControllerBuddy-DCS-Integration\ControllerBuddy.lua]])'
# shellcheck disable=SC1003
grep -qxF "$EXPORT_LUA_LINE" "$EXPORT_LUA_PATH" || { sed -i '$a\' "$EXPORT_LUA_PATH" && echo "$EXPORT_LUA_LINE" >> "$EXPORT_LUA_PATH" && unix2dos -q "$EXPORT_LUA_PATH" ; }
check_retval "Error: Failed to add ControllerBuddy-DCS-Integration to $EXPORT_LUA_PATH"
fi
Expand Down

0 comments on commit 42ef892

Please sign in to comment.