From 9e879557d95c501584f783bbb05db3f43e79920d Mon Sep 17 00:00:00 2001 From: xonixx Date: Fri, 13 Dec 2024 02:43:29 +0200 Subject: [PATCH] selfupdate is broken #174 : debug attempt --- makesure.awk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/makesure.awk b/makesure.awk index 23b0e46..0d5da9c 100755 --- a/makesure.awk +++ b/makesure.awk @@ -731,7 +731,10 @@ function selfUpdate( tmp, err, newVer,line,sha) { break } } - if (!sha) err = "unable to get the latest commit" + if (!sha) {err = "unable to get the latest commit" + print "DEBUG>>>" + system("cat "tmp) + } if (!err) { # now download the latest executable err = dl("https://raw.githubusercontent.com/xonixx/makesure/" sha "/makesure", tmp)