mirror of
https://github.com/unmojang/meta.git
synced 2025-09-24 11:41:28 -04:00
Add clone script and shared bash script config
This commit is contained in:
parent
a18918a7c7
commit
000c88bbc6
17
clone.sh
Executable file
17
clone.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
cd "${BASEDIR}"
|
||||
BASEDIR=`pwd`
|
||||
|
||||
source config.sh
|
||||
|
||||
set -x
|
||||
|
||||
if [ ! -d "${UPSTREAM_DIR}" ]; then
|
||||
git clone ${UPSTREAM_REPO} ${UPSTREAM_DIR}
|
||||
fi
|
||||
|
||||
if [ ! -d "${MMC_DIR}" ]; then
|
||||
git clone ${MMC_REPO} ${MMC_DIR}
|
||||
fi
|
5
config.sh
Normal file
5
config.sh
Normal file
@ -0,0 +1,5 @@
|
||||
export UPSTREAM_DIR=mojang
|
||||
export UPSTREAM_REPO=git@github.com:MultiMC/meta-upstream.git
|
||||
export MMC_DIR=multimc
|
||||
export MMC_REPO=git@github.com:MultiMC/meta-multimc.git
|
||||
|
Loading…
x
Reference in New Issue
Block a user