forked from pub-solar/os
teutat3s
efc58fba0a
Reviewed-on: https://git.b12f.io/pub-solar/os/pulls/14 Co-authored-by: teutat3s <teutates@mailbox.org> Co-committed-by: teutat3s <teutates@mailbox.org>
13 lines
217 B
Bash
Executable file
13 lines
217 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
set -e
|
|
set -u
|
|
|
|
LOCAL="$DRONE_BRANCH"
|
|
[ "$LOCAL" = "master" ] && UPSTREAM=origin/devos || UPSTREAM=origin/master
|
|
|
|
git fetch --all
|
|
git checkout "$LOCAL"
|
|
git merge "$UPSTREAM"
|
|
git push origin "$LOCAL"
|