Quote variables correctly

god dammit
This commit is contained in:
Salt 2020-05-19 12:19:21 -05:00
parent 810fccfce2
commit 54f19e0619

View File

@ -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