mirror of
https://github.com/nextcloud/documentation.git
synced 2025-12-12 07:29:47 +07:00
committed by
Morris Jobke
parent
67a61197a0
commit
06086446bf
13
build/get-server-sources.sh
Executable file
13
build/get-server-sources.sh
Executable 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;
|
||||
Reference in New Issue
Block a user