jazzdotdev / jazz

The Scripting Engine that Combines Speed, Safety, and Simplicity
Apache License 2.0
147 stars 11 forks source link

make torchup update itself if install.sh changes #261

Open naturallymitchell opened 5 years ago

naturallymitchell commented 5 years ago

since github doesn't give Last-Modified headers, I believe we could save the raw install.sh ETag from the HTTP response by appending it to the last line in torchup. then when running torchup, tail -n1 and compare that. if it's different, then overwrite torchup with the newer version.