File tree 6 files changed +15
-15
lines changed
6 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -29,22 +29,22 @@ gitcmd="git -c commit.gpgsign=false"
29
29
30
30
source " $basedir /scripts/functions.sh"
31
31
32
- " $basedir " /scripts/requireDeps.sh || exit 1
32
+ " $basedir " /scripts/requireDeps.sh || exit $?
33
33
34
34
failed=0
35
35
case " $1 " in
36
36
" u" | " up" | " upstream" )
37
37
(
38
38
cd " $basedir "
39
39
scripts/upstreamMerge.sh " $basedir " " $2 "
40
- )
40
+ ) || exit $?
41
41
;;
42
42
" cu" | " commitup" | " commitupstream" | " upc" | " upcommit" | " upstreamcommit" )
43
43
(
44
44
cd " $basedir "
45
45
shift
46
46
scripts/upstreamCommit.sh " $@ "
47
- )
47
+ ) || exit $?
48
48
;;
49
49
" r" | " root" )
50
50
cd " $basedir "
Original file line number Diff line number Diff line change 1
1
group =net.glowstone
2
- version =1.19.3 -R0.1-SNAPSHOT
3
- mcVersion =1.19.3
2
+ version =1.19.4 -R0.1-SNAPSHOT
3
+ mcVersion =1.19.4
4
4
5
5
org.gradle.caching =true
6
6
org.gradle.parallel =true
Original file line number Diff line number Diff line change 21
21
if [[ " $REPLY " =~ ^[Mm]$ ]]; then
22
22
git merge origin/$prevbranch
23
23
elif [[ " $REPLY " =~ ^[Rr]$ ]]; then
24
- git rebase master
24
+ git rebase main
25
25
fi
26
26
echo " Dropping to new shell, exit to delete the refs"
27
27
" ${SHELL:- bash} " -i
Original file line number Diff line number Diff line change @@ -24,4 +24,4 @@ log="${UP_LOG_PREFIX}Updated Upstream ($updated)\n\n${logsuffix}"
24
24
25
25
echo -e " $log " | git commit -F -
26
26
27
- ) || exit 1
27
+ ) || exit $?
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ function getRef {
13
13
}
14
14
function update {
15
15
cd " $workdir /$1 "
16
- $gitcmd fetch && $gitcmd clean -fd && $gitcmd reset --hard $2
16
+ ( $gitcmd fetch && $gitcmd clean -fd && $gitcmd reset --hard origin/ $2 --) || exit $?
17
17
refRemote=$( git rev-parse HEAD)
18
18
cd ../
19
19
$gitcmd add --force $1
@@ -24,14 +24,14 @@ function update {
24
24
fi
25
25
}
26
26
27
- # update Paper origin/ master
28
- update Paper " 1.19.3 "
27
+ # update Paper master
28
+ update Paper ver/ 1.19.4
29
29
30
30
if [ " $updated " == " 1" ]; then
31
31
cd " $basedir "
32
- ./gradlew cleanCache || exit 1 # todo: Figure out why this is necessary
33
- ./gradlew applyApiPatches -Dpaperweight.debug=true || exit 1
34
- ./gradlew rebuildApiPatches || exit 1
32
+ ./gradlew cleanCache || exit $?
33
+ ./gradlew applyApiPatches -Dpaperweight.debug=true || exit $?
34
+ ./gradlew rebuildApiPatches || exit $?
35
35
$gitcmd add --force " Paper-API-Patches"
36
36
fi
37
- ) || exit 1
37
+ ) || exit $?
You can’t perform that action at this time.
0 commit comments