From 653d0386243f9ce2e2ad924eb022095fe283b083 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Sun, 2 Jul 2023 15:26:02 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20:=20r=C3=A9-=C3=A9criture=20de=20l?= =?UTF-8?q?aunch-minecraft-server=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/launch-minecraft-server | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/launch-minecraft-server b/bin/launch-minecraft-server index fd61d1a..14badca 100755 --- a/bin/launch-minecraft-server +++ b/bin/launch-minecraft-server @@ -1,5 +1,9 @@ -#!/bin/sh -ex +#!/bin/sh -e cd /srv/minecraft/bin -PATH=".:${PATH}" -sudo -u minecraft screen "$1" +if [ -f "$1" ]; then + sudo -u minecraft screen "./${1}" +else + >&2 echo "Le serveur \"${1}\" n'existe pas." + false +fi