Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hj5m35Lj6Rt9vwwLGZ
This commit is contained in:
commit
15b7c3f0e3
4 files changed
+21
-7
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