From ab176c696b5177f1912095e75d025c057ded3f89 Mon Sep 17 00:00:00 2001 From: xonixx Date: Thu, 12 Dec 2024 02:45:54 +0200 Subject: [PATCH] selfupdate is broken #174 : switch to releases strategy --- makesure | 13 ++++++------- makesure.awk | 15 +++++++-------- makesure_candidate | 13 ++++++------- 3 files changed, 19 insertions(+), 22 deletions(-) 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