Move to build directory

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2017-10-18 14:16:20 +02:00
committed by Morris Jobke
parent 67a61197a0
commit 06086446bf
7 changed files with 38 additions and 48 deletions

13
build/get-server-sources.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
#
# Clone Nextcloud server repo into $CWD/server
# if it already exists the latest commits from
# the specified branch will be fetched
NC_BRANCH="${1:-master}"
if [ -d server/.git ]; then
cd server && git fetch && git checkout $NC_BRANCH && git reset --hard origin/$NC_BRANCH
else
git clone https://github.com/nextcloud/server server
fi;