diff --git a/makesure b/makesure index 7afc024..402f0aa 100755 --- a/makesure +++ b/makesure @@ -493,18 +493,17 @@ function currentTimeMillis(res){ res=executeGetLine("date +%s%3N") sub(/%?3N/,"000",res) return +res} -function selfUpdate(tmp,err,newVer,line,sha){ +function selfUpdate(tmp,err,newVer,line,ver){ tmp=executeGetLine("mktemp /tmp/makesure_new.XXXXXXXXXX") - err=dl("https://api.github.com/repos/xonixx/makesure/commits?per_page=1",tmp) + err=dl("https://github.com/xonixx/makesure/releases",tmp) if(!err){ while(getline line