Ensure to create save game subtree on remote

This commit is contained in:
Jeremy Gardais 2019-10-09 00:32:03 +02:00
parent 4742f7f7f4
commit 60c64bc151
1 changed files with 2 additions and 0 deletions

View File

@ -91,6 +91,8 @@ move_steam_game_dir() {
## If a remote directory doesn't already exists for this game ## If a remote directory doesn't already exists for this game
if [ ! -d "${_remote_game_path}" ]; then 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 ### Move data to remote storage
mv -- "${_local_game_path}" "${_remote_game_path}" 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." [ "${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."