mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-21 21:45:39 +00:00
POST_UPDATE: added collections folder
This commit is contained in:
parent
4e5e686386
commit
de623f4ee1
|
@ -352,7 +352,7 @@ post_update() {
|
|||
if [[ $(check_version_is_older_than "0.8.3b") == "true" ]]; then
|
||||
# In version 0.8.3b, the following changes were made:
|
||||
# - Recovery from a failed move of the themes, downloaded_media and gamelists folder to their new ES-DE locations.
|
||||
if [[ !-d "$rdhome/ES-DE/themes" || ! -d "$rdhome/ES-DE/downloaded_media" || ! -d "$rdhome/ES-DE/gamelists" ]]; then
|
||||
if [[ !-d "$rdhome/ES-DE/themes" || ! -d "$rdhome/ES-DE/downloaded_media" || ! -d "$rdhome/ES-DE/gamelists" || ! -d "$rdhome/ES-DE/collections" ]]; then
|
||||
log i "Moving ES-DE downloaded_media, gamelist, and themes from \"$rdhome\" to \"$rdhome/ES-DE\" due to a RetroDECK Framework bug"
|
||||
if [[ -d "$rdhome/themes" && ! -d "$rdhome/ES-DE/themes" ]]; then
|
||||
move "$rdhome/themes" "$rdhome/ES-DE/themes" && log d "Move of \"$rdhome/themes\" completed"
|
||||
|
@ -369,8 +369,13 @@ post_update() {
|
|||
else
|
||||
log i "ES-DE gamelists appears to already have been migrated."
|
||||
fi
|
||||
if [[ -d "$rdhome/collections" && ! -d "$rdhome/ES-DE/collections" ]]; then
|
||||
move "$rdhome/collections" "$rdhome/ES-DE/collections" && log d "Move of \"$rdhome/collections/\" completed"
|
||||
else
|
||||
log i "ES-DE collections appears to already have been migrated."
|
||||
fi
|
||||
else
|
||||
log i "ES-DE dfolders appears to already have been migrated."
|
||||
log i "ES-DE folders appears to already have been migrated."
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue