mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-29 17:15:41 +00:00
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:
commit
e77f4450e9
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue