Update build.sh

This commit is contained in:
sump pump 2020-06-28 13:58:02 -06:00 committed by GitHub
parent ca97c22568
commit 197a63d2f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,10 +39,12 @@ do
echo "Configuring Lixonet3 network $netname from $git..."
echo "Variables: $sigil_vars"
# Clone and enter the repository
# Clone and copy the repository
rm -rf "$(basename "$git" .git)"
git clone $git || { echo "clone $git failed, quitting" ; exit 1; }
cd "$(basename "$git" .git)"
rm -rf work
mkdir work
cp -r "$(basename "$git" .git)"/* work/ && cd work
# Copy default files
cp -r ../tinc/* tinc/