Properly pass the branch to get-server-sources.sh

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv)
2018-12-07 15:14:16 +01:00
parent d5a1678967
commit e9b56bcb89
2 changed files with 9 additions and 5 deletions

View File

@@ -6,6 +6,10 @@
NC_BRANCH="${1:-master}"
printf "\n\n"
echo Fetching source for $NC_BRANCH
printf "\n"
if [ -d server/.git ]; then
cd server && git fetch && git checkout $NC_BRANCH && git reset --hard origin/$NC_BRANCH
else