Skip to content

Commit

Permalink
Flatten control flow
Browse files Browse the repository at this point in the history
  • Loading branch information
lianghai committed Dec 11, 2024
1 parent 55166cd commit 73c74f1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/publish-ucd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ mkdir dist/UCD
cp -R unicodetools/data/ucd/dev dist/UCD/ucd
mv dist/UCD/ucd/version-ReadMe.txt dist/UCD/ReadMe.txt
rm -r dist/UCD/ucd/Unihan

if [ "$MODE" = "Snapshot" ]; then
rm -r dist/UCD/ucd/emoji
fi
Expand All @@ -31,13 +32,13 @@ if [ "$MODE" = "Alpha" ] || [ "$MODE" = "Beta" ]; then
mkdir dist/idna2008derived
cp unicodetools/data/idna/idna2008derived/ReadMe.txt dist/idna2008derived
cp unicodetools/data/idna/idna2008derived/Idna2008-$UNI_VER.txt dist/idna2008derived
fi

if [ "$MODE" = "Beta" ]; then
cp -R unicodetools/data/uca/dev dist/UCA
sed -i -f dist/sed-readmes.txt dist/UCA/CollationTest.html
if [ "$MODE" = "Beta" ]; then
cp -R unicodetools/data/uca/dev dist/UCA
sed -i -f dist/sed-readmes.txt dist/UCA/CollationTest.html

cp -R unicodetools/data/security/dev dist/security
fi
cp -R unicodetools/data/security/dev dist/security
fi

# Update the readmes in-place (-i) as set up above.
Expand Down

0 comments on commit 73c74f1

Please sign in to comment.