Commit c18618c7 authored by mh's avatar mh
Browse files

be more efficient on cloning and copy Dockerfile to an upstream suffixed one

parent 28051f38
#!/bin/bash -e
[ -d ./upstream ] && rm -rf ./upstream
git clone upstream
git clone --depth 1 --no-single-branch upstream
cd upstream
cur_git_branch=$(git rev-parse --abbrev-ref HEAD)
......@@ -39,13 +39,13 @@ else
cd docker
cp -dR Dockerfile ../../
cp -dR Dockerfile ../../Dockerfile.upstream
cp -dR assets/* ../../assets/
cd ../..
echo $version > VERSION
git add Dockerfile* VERSION assets
git add Dockerfile.upstream Containerfile VERSION assets
if [ -z "$(git diff --name-only --cached)" ]; then
echo "Nothing to update"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment