Prevent error by adding return 0 to set_eula()

This commit is contained in:
Kris Lamoureux 2024-05-26 01:41:57 -04:00
parent f83c8499e6
commit c4e3fc042c
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925

View File

@ -9,6 +9,7 @@ set_eula() {
sed -i.bak "s/^eula=.*\$/eula=${EULA:-false}/" "$EULAFILE" sed -i.bak "s/^eula=.*\$/eula=${EULA:-false}/" "$EULAFILE"
diff --unified=1 "${EULAFILE}.bak" "$EULAFILE" diff --unified=1 "${EULAFILE}.bak" "$EULAFILE"
rm "${EULAFILE}.bak" rm "${EULAFILE}.bak"
return 0
} }
# Update server.properties using env # Update server.properties using env