From a31cd280e37ec86e71ca30deee27119ce5bd7864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Sat, 25 Feb 2023 17:56:44 +0100 Subject: [PATCH] Add set -e to all scripts --- .ms-manager/detect_server.sh | 2 +- .ms-manager/java.sh | 2 +- .ms-manager/paper.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.ms-manager/detect_server.sh b/.ms-manager/detect_server.sh index 241876a..7b6cac5 100644 --- a/.ms-manager/detect_server.sh +++ b/.ms-manager/detect_server.sh @@ -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 diff --git a/.ms-manager/java.sh b/.ms-manager/java.sh index 5c9b788..444c73b 100644 --- a/.ms-manager/java.sh +++ b/.ms-manager/java.sh @@ -1,5 +1,5 @@ #!/bin/bash - +set -e # Setup Java function setup_java { # Get the required Java version for the Minecraft version diff --git a/.ms-manager/paper.sh b/.ms-manager/paper.sh index 9855fe3..3ff6e47 100644 --- a/.ms-manager/paper.sh +++ b/.ms-manager/paper.sh @@ -1,5 +1,5 @@ #!/bin/bash - +set -e # API URL api_url="https://api.papermc.io/v2/projects/paper/versions/$version/builds"