We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b49787 commit 2ed1742Copy full SHA for 2ed1742
rewatch/tests/legacy.sh
@@ -41,10 +41,11 @@ else
41
fi
42
43
error_output=$(rewatch_legacy format -all 2>&1 >/dev/null)
44
-git_diff_file_count=$(git diff --name-only ./ | wc -l)
+git_diff_file_count=$(git diff --name-only ./ | wc -l | xargs)
45
if [ $? -eq 0 ] && [ $git_diff_file_count -eq 1 ];
46
then
47
success "Test package formatted. Got $git_diff_file_count changed files."
48
+ git restore .
49
else
50
error "Error formatting test package"
51
echo $error_output
0 commit comments