Fix version variable missing value after updating retrodeck.cfg

Merge pull request #258 from icenine451/cooker-0.6.2b-icenine451
This commit is contained in:
XargonWan 2023-03-09 17:27:21 +01:00 committed by GitHub
commit e77f4450e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -564,8 +564,9 @@ update_rd_conf() {
mv -f $rd_conf $rd_conf_backup # Backup config file before update
generate_single_patch $rd_defaults $rd_conf_backup $rd_update_patch retrodeck
sed -i '/change^^version/d' $rd_update_patch # Remove version line from temporary patch file
sed -i '/change^^version/d' $rd_update_patch # Remove version line from temporary patch file, so old value isn't kept
deploy_single_patch $rd_defaults $rd_update_patch $rd_conf
set_setting_value $rd_conf "version" "$hard_version" retrodeck # Set version of currently running RetroDECK to updated retrodeck.cfg
rm -f $rd_update_patch # Cleanup temporary patch file
source $rd_conf # Load new config file variables
}