mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-22 14:02:24 +00:00
8 lines
212 B
Bash
8 lines
212 B
Bash
|
#!/bin/bash
|
||
|
set -xe
|
||
|
REPO=$1
|
||
|
|
||
|
LATEST_TAG=$(curl -s "https://api.github.com/repos/$REPO/releases/latest" | jq -r '.name')
|
||
|
|
||
|
cat <<< $(jq ".version = \"$LATEST_TAG\"" docs/data/version.json) > docs/data/version.json
|