The fetch script downloaded through mktemp (0600) and the installer kept that mode, so the session couldn't read the root-owned font and reported it missing. The failure was also cached until the next session. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
44688453d7
commit
7912a0b32b
3 files changed
+20
-6
No files matched your search
@@ -12,6 +12,7 @@ sha=72a635cb3d2f3524c51620cdde406b217204e8a6a06c6a096ff8ed4b5fd6e27b
|
||||
url=https://raw.githubusercontent.com/googlefonts/noto-emoji/$version/fonts/NotoColorEmoji.ttf
|
||||
dst=assets/fonts/NotoColorEmoji.ttf
|
||||
if [ -f "$dst" ] && echo "$sha $dst" | sha256sum --check --status; then
|
||||
chmod 644 "$dst"
|
||||
exit 0
|
||||
fi
|
||||
echo "fetching Noto Color Emoji $version (10 MB) from $url" >&2
|
||||
@@ -25,6 +26,7 @@ if ! echo "$sha $tmp" | sha256sum --check --status; then
|
||||
echo "error: $url is not the expected Noto Color Emoji $version (sha256 differs: $(sha256sum "$tmp" | cut -d' ' -f1))" >&2
|
||||
exit 1
|
||||
fi
|
||||
chmod 644 "$tmp" # mktemp made it 0600; the installed copy must be readable by the session's user
|
||||
mv "$tmp" "$dst"
|
||||
trap - EXIT
|
||||
echo "installed $dst" >&2
|
||||
Reference in new issue
Block a user