Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rewatch/tests/legacy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ else
fi

error_output=$(rewatch_legacy format -all 2>&1 >/dev/null)
git_diff_file_count=$(git diff --name-only ./ | wc -l)
git_diff_file_count=$(git diff --name-only ./ | wc -l | xargs)
if [ $? -eq 0 ] && [ $git_diff_file_count -eq 1 ];
then
success "Test package formatted. Got $git_diff_file_count changed files."
git restore .
else
error "Error formatting test package"
echo $error_output
Expand Down