Skip to content

Commit

Permalink
scuffed newline?
Browse files Browse the repository at this point in the history
  • Loading branch information
sealldeveloper committed Oct 17, 2024
1 parent 0996a9c commit d84d5c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/autocheckcombos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
run: |
NEW_CANDIDATES_FOUND=false
CHANGES=""
NEWLINE=$(printf "\\$(printf '%03o' "10")")
while IFS= read -r line; do
if [[ "$line" =~ ^[0-9] ]]; then
NEW_CANDIDATES_FOUND=true
Expand All @@ -56,8 +57,7 @@ jobs:
DIFFERENCE=$((OLD_LENGTH - NEW_LENGTH))
ASCII_CHAR=$(printf "\\$(printf '%03o' "$ASCII_NUM")")
sed -i "s/^$ASCII_NUM,.*/$ASCII_NUM,$NEW_PYTHON_CODE/" data/originalMappings.csv
CHANGES="${CHANGES}- $ASCII_NUM: `$OLD_PYTHON_CODE` → `$NEW_PYTHON_CODE` (**${DIFFERENCE}** characters shorter!)
"
CHANGES="${CHANGES}- $ASCII_NUM: `$OLD_PYTHON_CODE` → `$NEW_PYTHON_CODE` (**${DIFFERENCE}** characters shorter!)${NEWLINE}"
fi
done < result.txt
Expand Down

0 comments on commit d84d5c8

Please sign in to comment.