From 54f19e0619d77d150ca21828063942a66f951449 Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 19 May 2020 12:19:21 -0500 Subject: [PATCH] Quote variables correctly god dammit --- roles/terraria/templates/backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/terraria/templates/backup.sh b/roles/terraria/templates/backup.sh index 26af286..0b95653 100644 --- a/roles/terraria/templates/backup.sh +++ b/roles/terraria/templates/backup.sh @@ -42,7 +42,7 @@ fi # WE MAKE BACKUP NOW SERGEI if cd "$OUTDIR"; then log "Initiating terraria dump" - su terraria -c cp "$TERRARIADIR/worlds/world.wld" "$OUTDIR/world-$(date -Iseconds).wld" + su terraria -c "cp \"$TERRARIADIR/worlds/world.wld\" \"$OUTDIR/world-$(date -Iseconds).wld\"" else log "Could not change directory: $OUTDIR" return 3