mumble-docker/scripts/clone.sh

18 wiersze
336 B
Bash
Executable File

#!/usr/bin/env bash
set -e
set -x
git clone --filter=tree:0 https://github.com/mumble-voip/mumble/ /mumble/repo
cd /mumble/repo
git config advice.detachedHead false
if [[ -n "$MUMBLE_VERSION" && ! "$MUMBLE_VERSION" == "latest" ]]; then
git checkout "$MUMBLE_VERSION"
fi
git submodule update --init
git submodule update --depth 1