From 558544f1e40cbff3920b1d51e48ee1f4a38d046a Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Mon, 6 Apr 2020 18:59:26 -0500 Subject: [PATCH] Fixed WORLD cloning when path has spaces --- start-finalSetup01World | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/start-finalSetup01World b/start-finalSetup01World index 0a7b5e2c..6ef57f19 100644 --- a/start-finalSetup01World +++ b/start-finalSetup01World @@ -35,15 +35,16 @@ case "X$WORLD" in fi ;; *) - if [[ -d $WORLD ]]; then - if [[ ! -d $worldDest ]]; then + if [[ -d "$WORLD" ]]; then + if [[ ! -d "$worldDest" ]]; then log "Cloning world directory from $WORLD ..." - cp -r $WORLD $worldDest + cp -r "$WORLD" "$worldDest" else log "Skipping clone from $WORLD since $worldDest exists" fi else - log "Invalid URL given for world: Must be HTTP or HTTPS and a ZIP file" + log "World cloning source '$WORLD' doesn't seem to exist" + exit 1 fi ;; esac