-
-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The right way to verify that there was a change in the list version. #278
Comments
@elico yesy indeed, once that Readme is updated with a new version number then the RAW links are also updated too, that you can count on. We only update Ultimate once a day using Cron so you instead of every 8 hours you can safely schedule it for 14h00 UTC once a day |
@elico just note that the version number is defined as follows |
@mitchellkrogza Thanks! |
Great @elico keep us posted. |
@mitchellkrogza the basic script I cam up with is: I have couple other tools that will come later. |
Just a little comment about your code @elico. Please avoid UPPERCASE variable as it can be confusing for people who want to start learning by reading your code (yes that exist). You use I'm not a big fan of oneliner like @mitchellkrogza but you may find the following as an alternative to
Please also consider using the format You may also learn later (if it's not already the case) that you can to get a substring of a string which can be made with So keep it clean, understandable and safe and the world will be a better place for the learner 😉. Question
Post scriptumI'm only a student and my only experience in Bash/Shell in open source project is funceble along with other really older projects. This is just pieces of advice do not take them personally. For me, it's important that when you publish code in public that it should be clear because not only experienced programmer may take a look at it. If those pieces of advice were present when I started to read and learn code, I would not waste so much time trying to find the right way. Anyway, feel free to follow or not those (little) pieces of advice. Cheers, |
@funilrys i just read this....your advice is right on the spot....i am a learner(bellow beginner) and i know exactly what you mean.You should see my little scripts that i made to update my hosts files.... |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Currently I have seen that the only place I can see the version of the blacklist is at:
under:
- Version: **V1.1123.2018.04.15**
which is between line 10 to 20 of the file.
can I count on it to always be there as it is?
IE I want to write a bash script that will check for a version change at github every 8 hours and will trigger an update download\fetch from github.
If not or if possible to have some "version.txt" file that will contain the current version with some etag or md5\sha1\sha256 hash that will help to verify that the downloaded file is indeed the one that I should receive.
The text was updated successfully, but these errors were encountered: