From 3a8a969062026bba6edd3d2bee7ab8e8f864adff Mon Sep 17 00:00:00 2001 From: sys4 Date: Fri, 27 Aug 2021 11:19:52 +0200 Subject: [PATCH] =?UTF-8?q?Renomme=20et=20corrige=20script=20g=C3=A9n?= =?UTF-8?q?=C3=A9ration=20de=20la=20map?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- regen-map.sh => genmap.sh | 6 +++--- shutdown.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename regen-map.sh => genmap.sh (90%) diff --git a/regen-map.sh b/genmap.sh similarity index 90% rename from regen-map.sh rename to genmap.sh index 341c140..d564735 100644 --- a/regen-map.sh +++ b/genmap.sh @@ -26,8 +26,8 @@ error() { } usage() { - echo "Usage : ./regen-map.sh [-h|--help] server_path worldname destination_path" - echo "Génère la carte de nalc vers le fichier $destination_path/nalc_map.png" + echo "Usage : ./genmap.sh [-h|--help] server_path worldname destination_path" + echo "Génère la carte de nalc vers le fichier destination_path/nalc_map.png" } action() { @@ -77,7 +77,7 @@ while true; do --) shift;; *) - action + action $1 $2 $3 exit 0 shift;; esac diff --git a/shutdown.sh b/shutdown.sh index 56008c2..c009428 100755 --- a/shutdown.sh +++ b/shutdown.sh @@ -33,7 +33,7 @@ action() { if [ $regenmap -eq 1 ]; then mount $mountpoint sleep 5 - $serverpath/regen_map.sh $serverpath $world $mapdest + $serverpath/genmap.sh $serverpath $world $mapdest umount $mountpoint fi