Skip to content

Commit

Permalink
listgen: oops
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw committed Nov 18, 2023
1 parent 0559fac commit 2cba2e6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/listgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,14 @@ jobs:
run: |
python ./support/walk-modules.py "${LISTGEN_PYTHON_VERSION}.txt"
sort -u -o ./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt" \
./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt" \
"${LISTGEN_PYTHON_VERSION}.txt"
if [[ -f "./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt"" ]]; then
sort -u -o ./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt" \
./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt" \
"${LISTGEN_PYTHON_VERSION}.txt"
else
sort -u -o ./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt" \
"${LISTGEN_PYTHON_VERSION}.txt"
fi
rm "${LISTGEN_PYTHON_VERSION}.txt"
Expand Down

0 comments on commit 2cba2e6

Please sign in to comment.