Skip to content

Commit

Permalink
rmeove xargs from precommit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Dec 16, 2024
1 parent a78f7e0 commit 419743d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/scripts/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ get_changed_files() {
path=$1
GIT_BASE_PATH=$(git rev-parse --show-toplevel)
# shellcheck disable=SC1087
git diff --cached --name-only --diff-filter=d --line-prefix="$GIT_BASE_PATH"/ "$path" | grep -E "\.($FORMATTED_FILE_EXTENSIONS)$" | tr '\n' ' ' | xargs
git diff --cached --name-only --diff-filter=d --line-prefix="$GIT_BASE_PATH"/ "$path" | grep -E "\.($FORMATTED_FILE_EXTENSIONS)$" | tr '\n' ' '
}

has_changed() {
Expand Down

0 comments on commit 419743d

Please sign in to comment.