update Zones command to eotl/data repository
This commit is contained in:
parent
81fc928a36
commit
7d83e90405
8
abra.sh
8
abra.sh
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue