Skip to content

Commit

Permalink
fix: Dynamically mount working directory to container
Browse files Browse the repository at this point in the history
  • Loading branch information
jidicula committed Jan 15, 2022
1 parent 6192fdb commit 036525d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
format_diff() {
local filepath="$1"
# Invoke clang-format with dry run and formatting error output
local_format="$(docker run -i -v "$(pwd)":/workdir -w /workdir ghcr.io/jidicula/clang-format:"$CLANG_FORMAT_VERSION" -n --Werror --style=file --fallback-style="$FALLBACK_STYLE" "/workdir/${filepath}")"
local_format="$(docker run -it -v "$(pwd)":"$(pwd)" -w "$(pwd)" ghcr.io/jidicula/clang-format:"$CLANG_FORMAT_VERSION" -n --Werror --style=file --fallback-style="$FALLBACK_STYLE" "${filepath}")"
local format_status="$?"
if [[ "${format_status}" -ne 0 ]]; then
ls
Expand Down

0 comments on commit 036525d

Please sign in to comment.