Corrige script génération de la carte (encore)
This commit is contained in:
parent
3a8a969062
commit
067181b0c8
@ -32,17 +32,17 @@ usage() {
|
||||
|
||||
action() {
|
||||
[ -z "$1" ] && error "Argument manquant"
|
||||
local serverpath="$1"
|
||||
local serverpath=$(strip "$1")
|
||||
[ ! -d $serverpath ] && error "Le répertoire $serverpath n'existe pas"
|
||||
|
||||
[ -z "$2" ] && error "Nom du world manquant"
|
||||
local world_name="$2"
|
||||
local world_name=$(strip "$2")
|
||||
|
||||
local world="$serverpath/minetest/worlds/$world_name"
|
||||
[ ! -d $world ] && error "Le répertoire $world n'existe pas"
|
||||
|
||||
[ -z "$3" ] && error "Chemin de destination manquant"
|
||||
local destination="$3"
|
||||
local destination=$(strip "$3")
|
||||
[ ! -d destination ] && error "Le répertoire $destination n'existe pas"
|
||||
|
||||
[ ! -d "$serverpath/minetestmapper" ] && error "minetestmapper ne semble pas installé"
|
||||
|
Loading…
Reference in New Issue
Block a user