Add -L option to curl calls to force following links redirection
Isolate update function in a proper file:
Updating a living script is not a really good idea. In some case
bash will try to follow execution of the actual instance in the
updated file, leading to errors or bad behavior.
As noted in previous comment, this update need to be done manually by users.
As noted in previous comment, this update need to be done manually by users.