From ff0596c174f0bc1e6af3055890637def11a1bb88 Mon Sep 17 00:00:00 2001 From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com> Date: Fri, 24 Jan 2025 06:30:15 -0500 Subject: [PATCH] [ci skip] Fix upstream commit sh on mac --- scripts/upstreamCommit.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/upstreamCommit.sh b/scripts/upstreamCommit.sh index 9269a98..6f4bbaf 100644 --- a/scripts/upstreamCommit.sh +++ b/scripts/upstreamCommit.sh @@ -16,8 +16,11 @@ PS1="$" paperHash=$(git diff gradle.properties | awk '/^-paperRef =/{print $NF}') +if [[ "$(uname)" != "Darwin" ]]; then TEMP=$(getopt --long paper: -o "" -- "$@") eval set -- "$TEMP" +fi + while true; do case "$1" in --paper)