Closed rany2 closed 1 year ago
Don't merge it yet, still need to preserve arguments.
Edit: all good
Should we log downloading new script and latest commit / updating to commit number?
Should we log downloading new script and latest commit / updating to commit number?
I don't follow
If we overwrite setup.sh should we not log that? Also should we not inform user of any upgrade? So print out the commit number previously installed and the one that has just been installed?
It's not actually overwriting anyway, it's just loading it on the fly
OK but what about informing user of the upgrade.. e.g. upgraded from version/commit to version/commit?
It's not knowable anyway, we can't do much here.
It's unconditionally going to load it from github if __CAKE_AUTORATE_URL_LOADED
was not set
We know previous version from the version file you created. And we know current version because you obtain that with the setup.sh already.
By the way when running I only see:
root@OpenWrt-1:~/cake-autorate# ./setup.sh
Installing cake-autorate in /root/cake-autorate...
Previous configuration present - keep it? [Y/n] root@OpenWrt-1:~/cake-autorate#
Meh, too complicated.
@lynxthecat Please test this out, but I think it should work.