mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 05:55:38 +00:00
POST_UPDATE: solving a bug where ES-DE path was placed twice in some occasions
This commit is contained in:
parent
190cfa3b78
commit
99daaa888f
|
@ -406,7 +406,13 @@ if [[ $(check_version_is_older_than "0.8.4b") == "true" ]]; then
|
||||||
|
|
||||||
|
|
||||||
log d "Injecting the new retrodeck/ES-DE subdir into the retrodeck.cfg"
|
log d "Injecting the new retrodeck/ES-DE subdir into the retrodeck.cfg"
|
||||||
|
# Check if ES-DE already exists in media_folder or themes_folder
|
||||||
|
if grep -E '^(media_folder|themes_folder)=.*ES-DE' "$rd_conf"; then
|
||||||
|
log d "ES-DE path already exists in media_folder or themes_folder"
|
||||||
|
else
|
||||||
|
# Update the paths if ES-DE does not exist
|
||||||
sed -i -e '/media_folder=/s|retrodeck/|retrodeck/ES-DE/|g' -e '/themes_folder=/s|retrodeck/|retrodeck/ES-DE/|g' "$rd_conf" && log d "Injection successful"
|
sed -i -e '/media_folder=/s|retrodeck/|retrodeck/ES-DE/|g' -e '/themes_folder=/s|retrodeck/|retrodeck/ES-DE/|g' "$rd_conf" && log d "Injection successful"
|
||||||
|
fi
|
||||||
log d "$(cat "$rd_conf" | grep media_folder)"
|
log d "$(cat "$rd_conf" | grep media_folder)"
|
||||||
log d "$(cat "$rd_conf" | grep themes_folder)"
|
log d "$(cat "$rd_conf" | grep themes_folder)"
|
||||||
conf_read
|
conf_read
|
||||||
|
|
Loading…
Reference in a new issue