Waterfall/scripts/upstreamCommit.sh
Luccboy 3071c68a44
Updated Upstream (Waterfall)
Upstream has released updates that appears to apply and compile correctly.
This update has not been tested by 2LStudios and as with ANY update, please do your own testing

Waterfall Changes:
c74fe8a Updated Upstream (BungeeCord)
91217e0 Adjusted README versions (#656)
6bf7f90 Updated Upstream (BungeeCord) (#655)
2021-06-09 20:15:34 +02:00

29 lines
770 B
Bash
Executable File

#!/usr/bin/env bash
(
set -e
PS1="$"
function changelog() {
base=$(git ls-tree HEAD $1 | cut -d' ' -f3 | cut -f1)
cd $1 && git log --oneline ${base}...HEAD
}
waterfall=$(changelog Waterfall)
updated=""
logsuffix=""
if [ ! -z "$waterfall" ]; then
logsuffix="$logsuffix\n\nWaterfall Changes:\n$waterfall"
if [ -z "$updated" ]; then updated="Waterfall"; else updated="$updated/Waterfall"; fi
fi
disclaimer="Upstream has released updates that appears to apply and compile correctly.\nThis update has not been tested by 2LStudios and as with ANY update, please do your own testing"
if [ ! -z "$1" ]; then
disclaimer="$@"
fi
log="${UP_LOG_PREFIX}Updated Upstream ($updated)\n\n${disclaimer}${logsuffix}"
echo -e "$log" | git commit -F -
) || exit 1