update Zones command to eotl/data repository

This commit is contained in:
basebuilder 2024-07-19 19:41:13 +02:00
parent 81fc928a36
commit 7d83e90405
1 changed files with 3 additions and 5 deletions

View File

@ -3,17 +3,15 @@ export SEXTANT_CONF_VERSION=v1
set -x
zones(){
DATA_PATH="$HOME/.local/share/eotl/core"
ZONES_URL="https://codeberg.org/eotl/core"
ZONES_PATH="$HOME/.local/share/eotl/core/data/json/zones"
DATA_PATH="$HOME/.local/share/eotl/data"
ZONES_URL="https://codeberg.org/eotl/data"
ZONES_PATH="$HOME/.local/share/eotl/data/zones"
if [ ! -d "$DATA_PATH/.git" ]; then
mkdir -p $DATA_PATH
cd $DATA_PATH
git init
git remote add -f origin "$ZONES_URL"
git sparse-checkout init
git sparse-checkout set "data/json/zones"
git pull --depth=1 origin main
fi