We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a29021 commit 79c8025Copy full SHA for 79c8025
upstream_sync.sh
@@ -0,0 +1,31 @@
1
+#!/bin/bash
2
+
3
+set -e
4
5
+git remote set upstream https://github.com/ShiftLeftSecurity/overflowdb
6
7
+usage() {
8
+ echo "Usage: $0 [--publish]"
9
+ exit 1
10
+}
11
12
+PUBLISH=false
13
+while [[ "$#" -gt 0 ]]; do
14
+ case $1 in
15
+ --publish) PUBLISH=true ;;
16
+ *) usage ;;
17
+ esac
18
+ shift
19
+done
20
21
+git fetch upstream
22
23
+git checkout sync
24
+git merge upstream/master
25
+git push origin sync
26
27
+if [ "$PUBLISH" = true ]; then
28
+ git checkout master
29
+ git merge sync
30
+ git push origin master
31
+fi
0 commit comments