mempool: init at 2.5.0
This commit is contained in:
parent
8cdedac046
commit
f0bf94cc5a
9 changed files with 435 additions and 0 deletions
14
pkgs/mempool/frontend-assets-update.sh
Executable file
14
pkgs/mempool/frontend-assets-update.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
updateRepoHash() {
|
||||
repo=$1
|
||||
echo -n "Fetching latest rev for $repo: "
|
||||
hash=$(curl -fsS "https://api.github.com/repos/$repo/commits/master" | jq -r '.sha')
|
||||
echo "$hash"
|
||||
sed -i -E "s|( +)\[\"$repo(.*)|\1[\"$repo\"]=$hash|" frontend-assets-fetch.sh
|
||||
}
|
||||
|
||||
<frontend-assets-fetch.sh sed -nE 's| +\["([^"]+).*|\1|p' | while read -r repo; do
|
||||
updateRepoHash "$repo"
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue