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