2
0
Fork 0

Add updater script

pull/42/head
Ambrose Chua 2019-09-01 01:19:18 +08:00
parent 409ccd27d6
commit 2f9426b15a
Signed by: ambrose
GPG Key ID: B34FBE029276BA5D
1 changed files with 21 additions and 0 deletions

21
backend-update Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
set -e
branch="$1"
if [ -z $branch ]; then
echo "Usage: $0 type/short-description"
exit 1
fi
git checkout master
git checkout -b "$branch"
git submodule foreach git pull origin master
git add .
updated=$(git diff master --name-status | cut -f 2)
git commit -S -m "$branch: Bump $updated"
git push --set-upstream origin "$branch"
git checkout master