Renomme et corrige script génération de la map

This commit is contained in:
bri cassa 2021-08-27 11:19:52 +02:00
parent 5291494df1
commit 3a8a969062
2 changed files with 4 additions and 4 deletions

View File

@ -26,8 +26,8 @@ error() {
} }
usage() { usage() {
echo "Usage : ./regen-map.sh [-h|--help] server_path worldname destination_path" 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" echo "Génère la carte de nalc vers le fichier destination_path/nalc_map.png"
} }
action() { action() {
@ -77,7 +77,7 @@ while true; do
--) --)
shift;; shift;;
*) *)
action action $1 $2 $3
exit 0 exit 0
shift;; shift;;
esac esac

View File

@ -33,7 +33,7 @@ action() {
if [ $regenmap -eq 1 ]; then if [ $regenmap -eq 1 ]; then
mount $mountpoint mount $mountpoint
sleep 5 sleep 5
$serverpath/regen_map.sh $serverpath $world $mapdest $serverpath/genmap.sh $serverpath $world $mapdest
umount $mountpoint umount $mountpoint
fi fi