johnandersen777.bsky.social/knotless
git that lives in your Atmosphere account
Forked from chadtmiller.com/knotless
0
0
#!/bin/sh
# The Pele the iOS app draws diagrams with is the one the pages have, as
# web/package-lock.json pins it: `just ios-pele` brings it in step.
set -eu
cd "$(dirname "$0")/.."
app=$(head -c 200 ios/Knotless/Vendor/pele.js | sed -n 's/^\/\*! Pele \([0-9.]*\) .*/\1/p')
web=$(node -p 'require("./web/package-lock.json").packages["node_modules/pele"].version')
if [ "$app" != "$web" ]; then
echo "ios/Knotless/Vendor/pele.js is Pele ${app:-of no version}, but web/ has $web: run just ios-pele" >&2
exit 1
fi
echo "Pele $app, as web/ has it"