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 4097176 commit 923ad9dCopy full SHA for 923ad9d
tests/check_spelling
@@ -223,8 +223,9 @@ for FILE in $FILES_TO_CHECK; do
223
224
# Auto-correct if --fix is provided
225
if [[ "$1" == "--fix" ]]; then
226
- { sed -i "s/$TYPO/$CORRECTION/g" "${FILE}" 2>/dev/null && \
227
- printf "::notice file=%s,title=Auto-corrected::%s\n" "$FILE" "Fixed typo '$TYPO' to '$CORRECTION'" ;} || :
+ if sed -i "s/$TYPO/$CORRECTION/g" "${FILE}" 2>/dev/null; then
+ printf "::notice file=%s,title=Auto-corrected::%s\n" "$FILE" "Fixed typo '$TYPO' to '$CORRECTION'"
228
+ fi
229
fi
230
231
unset TYPO 2>/dev/null || : ;
0 commit comments