Files
nekoray/libs/get_source.sh
2024-10-09 13:32:41 +09:00

42 lines
597 B
Bash
Executable File

#!/bin/bash
set -e
source libs/env_deploy.sh
ENV_NEKORAY=1
source libs/get_source_env.sh
pushd ..
####
if [ ! -d "sing-box" ]; then
git clone --no-checkout https://github.com/MatsuriDayo/sing-box.git
fi
pushd sing-box
git checkout "$COMMIT_SING_BOX"
popd
####
if [ ! -d "sing-quic" ]; then
git clone --no-checkout https://github.com/MatsuriDayo/sing-quic.git
fi
pushd sing-quic
git checkout "$COMMIT_SING_QUIC"
popd
####
if [ ! -d "libneko" ]; then
git clone --no-checkout https://github.com/MatsuriDayo/libneko.git
fi
pushd libneko
git checkout "$COMMIT_LIBNEKO"
popd
####
popd