Moderators: Mug UK, Zorro 2, Greenious, spiny, Sorgelig, Moderator Team
Sorgelig wrote:i found the bug.
I was hidden bug which was present since the beginning.
Locutus73 wrote:ewok wrote:Is it possible to automaticly update the script too? This script changed my life too. Now if only.....
Thanks for all the great work!
Make a little update.sh script like this:Code: Select all
#!/bin/bash
curl -ksLf https://github.com/MiSTer-devel/Updater_script_MiSTer/blob/master/mister_updater.sh?raw=true | bash -
And it will always execute the latest mister_updater.sh from GitHub with default settings.
Regards.
Locutus73
Code: Select all
#!/bin/bash
curl -ksLf https://raw.githubusercontent.com/MiSTer-devel/Updater_script_MiSTer/master/mister_updater.sh | bash -
esmith13 wrote:The script keeps not only the updated version with the correct name but also a second copy with the date code still intact.
Did you press f12 on the main screen and verify your active version number?
ovalfastlx wrote:esmith13 wrote:The script keeps not only the updated version with the correct name but also a second copy with the date code still intact.
Did you press f12 on the main screen and verify your active version number?
I checked version with F12 it still says 20181229 version. I know there's a 20181231 version.
Code: Select all
if [ $BASE_FILE_NAME == "MiSTer" ] || [ $BASE_FILE_NAME == "menu" ]
then
DESTINATION_FILE=$(echo "$MAX_RELEASE_URL" | sed 's/.*\///g' | sed 's/_[0-9]\{8\}[a-zA-Z]\{0,1\}//g')
echo "Copying $DESTINATION_FILE"
rm "$CURRENT_DIR/$DESTINATION_FILE" > /dev/null 2>&1
cp "$CURRENT_DIR/$FILE_NAME" "$CURRENT_DIR/$DESTINATION_FILE"
REBOOT_NEEDED=true
fi
SnoopKatt wrote:Locutus73 wrote:ewok wrote:Is it possible to automaticly update the script too? This script changed my life too. Now if only.....
Thanks for all the great work!
Make a little update.sh script like this:Code: Select all
#!/bin/bash
curl -ksLf https://github.com/MiSTer-devel/Updater_script_MiSTer/blob/master/mister_updater.sh?raw=true | bash -
And it will always execute the latest mister_updater.sh from GitHub with default settings.
Regards.
Locutus73
I tried this, but it still ended up resolving as an html page, even with the raw=true part in.
I got this working by doing:Code: Select all
#!/bin/bash
curl -ksLf https://raw.githubusercontent.com/MiSTer-devel/Updater_script_MiSTer/master/mister_updater.sh | bash -
Locutus73 wrote:Strange,
https://github.com/MiSTer-devel/Updater ... h?raw=true
redirects to
https://raw.githubusercontent.com/MiSTe ... updater.sh
you can try clicking the links.
I use that script myself, did you use the -ksLf options in the curl command?
Regards.
Locutus73
SnoopKatt wrote:It redirects to it in the web browser, but it didn't when I tried it on my MiSTer. I used those options as well. Are there any other customizations that you have on the Linux OS?
Either way, thank you for making the script! It's very helpful given how fast this project moves (which is a great thing!).
Locutus73 wrote:ovalfastlx wrote:esmith13 wrote:The script keeps not only the updated version with the correct name but also a second copy with the date code still intact.
Did you press f12 on the main screen and verify your active version number?
I checked version with F12 it still says 20181229 version. I know there's a 20181231 version.
Strange, the replacement is done by this bit of codeCode: Select all
if [ $BASE_FILE_NAME == "MiSTer" ] || [ $BASE_FILE_NAME == "menu" ]
then
DESTINATION_FILE=$(echo "$MAX_RELEASE_URL" | sed 's/.*\///g' | sed 's/_[0-9]\{8\}[a-zA-Z]\{0,1\}//g')
echo "Copying $DESTINATION_FILE"
rm "$CURRENT_DIR/$DESTINATION_FILE" > /dev/null 2>&1
cp "$CURRENT_DIR/$FILE_NAME" "$CURRENT_DIR/$DESTINATION_FILE"
REBOOT_NEEDED=true
fi
Did your MiSTer reboot after updating main MiSTer or menu rbf?
Try deleting MiSTer_yyyymmdd and menu_yyyymmdd.rbf and update again.
Regards.
Locutus73
ovalfastlx wrote:So it updated with download new cores set to "true". I had this set to false because I only wanted to update what was on the card already, which worked on the cores but not the Main or Menu.
ovalfastlx wrote:So it updated with download new cores set to "true". I had this set to false because I only wanted to update what was on the card already, which worked on the cores but not the Main or Menu.
Locutus73 wrote:Hi, new mister_updater.sh script:
Version 1.6.2 - 2019.01.02 - Solved a bug that prevented updating MiSTer main executable, menu.rbf and Linux system when DOWNLOAD_NEW_CORES="false" and timestamped files were missing; improved REPOSITORIES_FILTER comments; code clean up by frederic-mahe (thank you very much).
https://github.com/MiSTer-devel/Updater_script_MiSTer
Regards.
Locutus73
Locutus73 wrote:SnoopKatt wrote:It redirects to it in the web browser, but it didn't when I tried it on my MiSTer. I used those options as well. Are there any other customizations that you have on the Linux OS?
Either way, thank you for making the script! It's very helpful given how fast this project moves (which is a great thing!).
And that’s is very interesting because I use the
https://github.com/MiSTer-devel/Updater ... h?raw=true
in my short update script myself and, if you look at the mister_updater.sh code, it uses the ?raw=true URLs everywhere for downloading cores and stuff.
If they didn’t work, the entire updater wouldn’t work.
Can you doublecheck please?
Thank you in advance.
Best regards.
Locutus73
Locutus73 wrote:Can anyone tell me if the updater readme is clear enough and if/where it can be improved (including bad grammar and typos)?
https://github.com/MiSTer-devel/Updater_script_MiSTer
Thank you in advance.
Regards.
Locutus73
SegaMan wrote:I am not sure how the .ini file should look like and where the file must be on SD Card (me=noob)
SegaMan wrote:I am not sure how the .ini file should look like and where the file must be on SD Card (me=noob)
esmith13 wrote:Agreed.
Would love a sample .ini to be on GitHub with all the options listed even if commented out.