From 60c64bc15168479cfc90cda9698105fcc80acaec Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 9 Oct 2019 00:32:03 +0200 Subject: [PATCH] Ensure to create save game subtree on remote --- games/save.game.steam | 2 ++ 1 file changed, 2 insertions(+) diff --git a/games/save.game.steam b/games/save.game.steam index 8a8a7de..4437ed6 100755 --- a/games/save.game.steam +++ b/games/save.game.steam @@ -91,6 +91,8 @@ move_steam_game_dir() { ## If a remote directory doesn't already exists for this game if [ ! -d "${_remote_game_path}" ]; then + ### Ensure to create tree directories on remote storage + mkdir -p -- "$(dirname "${_remote_game_path}")" ### Move data to remote storage mv -- "${_local_game_path}" "${_remote_game_path}" [ "${debug}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Move Steam game − The data of ${_game_id} − ${_local_game_path} moved to remote storage."