diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-09-17 03:02:55 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2019-09-17 03:02:55 -0600 |
| commit | c9dda3407df23aa2c697251575a9a5fff7e1cbf2 (patch) | |
| tree | 2fe9641984f1e275ae662ae33a08426dce7fef78 /scripts | |
| parent | 62a5d0157b88b8931509109ea70cdeb0b0bd06e3 (diff) | |
exit subset-font.sh script properly if fontforge command fails [skip ci]
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/subset-fonts.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/subset-fonts.sh b/scripts/subset-fonts.sh index b01a98db..94f38a14 100755 --- a/scripts/subset-fonts.sh +++ b/scripts/subset-fonts.sh @@ -34,6 +34,7 @@ cp /usr/share/fonts/google-noto/NotoSerif-{Regular,Italic,Bold,BoldItalic}.ttf . cd .. +# NOTE build image using command found at top of Dockerfile.fontforge podman run --rm -t -u 0:0 --privileged \ -e "SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH}" \ -v `pwd`:/home/fontforge/scripts \ @@ -44,6 +45,8 @@ podman run --rm -t -u 0:0 --privileged \ exitcode=$? rm -f $SOURCE_DIR/*.ttf -rmdir build +if [ -d build ]; then + rmdir build +fi exit $exitcode |
