Add set -e to all scripts

This commit is contained in:
Jiří Štefka 2023-02-25 17:56:44 +01:00
parent 49e9bff013
commit a31cd280e3
3 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
#!/bin/bash
set -e
# Detect the server type
function get_existing_server {
if ls paper-*.jar 1> /dev/null 2>&1; then

View file

@ -1,5 +1,5 @@
#!/bin/bash
set -e
# Setup Java
function setup_java {
# Get the required Java version for the Minecraft version

View file

@ -1,5 +1,5 @@
#!/bin/bash
set -e
# API URL
api_url="https://api.papermc.io/v2/projects/paper/versions/$version/builds"