POST_UPDATE: code cleanup [skip ci]

This commit is contained in:
XargonWan 2024-06-23 20:26:45 +09:00
parent 75dc0bf237
commit 4cac8e13e2

View file

@ -339,15 +339,12 @@ post_update() {
fi
if [[ $(check_version_is_older_than "0.8.2b") == "true" ]]; then
if [ -d ] then;
log i "Vita3K changed some paths, reflecting them: moving \"/var/data/Vita3K\" in \"/var/config/Vita3K\""
mv -f "/var/data/Vita3K" "/var/config/Vita3K"
log i "Moving ES-DE downloaded_media, gamelist, and themes from \"$rdhome\" to \"$rdhome/ES-DE\" due to a RetroDECK Framework bug"
mv -f "$rdhome/themes" "$rdhome/ES-DE/themes" && log d "Move of \"$rdhome/themes\" completed"
mv -f "$rdhome/downloaded_media" "$rdhome/ES-DE/downloaded_media" && log d "Move of \"$rdhome/downloaded_media\" completed"
mv -f "$rdhome/gamelists/"* "$rdhome/ES-DE/gamelists" && log d "Move of \"$rdhome/gamelists/\" completed" && rm -rf "$rdhome/gamelists"
fi
fi
# if [[ $(check_version_is_older_than "0.9.0b") == "true" ]]; then