Skip to content

Commit a874331

Browse files
committed
fix exit codes and update to 1.19.4
1 parent fa4562f commit a874331

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

glowkit.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@ gitcmd="git -c commit.gpgsign=false"
2929

3030
source "$basedir/scripts/functions.sh"
3131

32-
"$basedir"/scripts/requireDeps.sh || exit 1
32+
"$basedir"/scripts/requireDeps.sh || exit $?
3333

3434
failed=0
3535
case "$1" in
3636
"u" | "up" | "upstream")
3737
(
3838
cd "$basedir"
3939
scripts/upstreamMerge.sh "$basedir" "$2"
40-
)
40+
) || exit $?
4141
;;
4242
"cu" | "commitup" | "commitupstream" | "upc" | "upcommit" | "upstreamcommit")
4343
(
4444
cd "$basedir"
4545
shift
4646
scripts/upstreamCommit.sh "$@"
47-
)
47+
) || exit $?
4848
;;
4949
"r" | "root")
5050
cd "$basedir"

gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
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
44

55
org.gradle.caching=true
66
org.gradle.parallel=true

scripts/checkoutpr.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ echo
2121
if [[ "$REPLY" =~ ^[Mm]$ ]]; then
2222
git merge origin/$prevbranch
2323
elif [[ "$REPLY" =~ ^[Rr]$ ]]; then
24-
git rebase master
24+
git rebase main
2525
fi
2626
echo "Dropping to new shell, exit to delete the refs"
2727
"${SHELL:-bash}" -i

scripts/upstreamCommit.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ log="${UP_LOG_PREFIX}Updated Upstream ($updated)\n\n${logsuffix}"
2424

2525
echo -e "$log" | git commit -F -
2626

27-
) || exit 1
27+
) || exit $?

scripts/upstreamMerge.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function getRef {
1313
}
1414
function update {
1515
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 $?
1717
refRemote=$(git rev-parse HEAD)
1818
cd ../
1919
$gitcmd add --force $1
@@ -24,14 +24,14 @@ function update {
2424
fi
2525
}
2626

27-
#update Paper origin/master
28-
update Paper "1.19.3"
27+
#update Paper master
28+
update Paper ver/1.19.4
2929

3030
if [ "$updated" == "1" ]; then
3131
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 $?
3535
$gitcmd add --force "Paper-API-Patches"
3636
fi
37-
) || exit 1
37+
) || exit $?

work/Paper

Submodule Paper updated 2105 files

0 commit comments

Comments
 (0)