diff --git a/makesure.awk b/makesure.awk index b0bf710..8afc8d2 100755 --- a/makesure.awk +++ b/makesure.awk @@ -470,8 +470,7 @@ function currentTimeMillis( script, res) { } function selfUpdate( url, tmp, err, newVer) { -# url = "https://raw.githubusercontent.com/xonixx/makesure/main/makesure_stable?" rand() - url = "https://raw.githubusercontent.com/xonixx/makesure/win/makesure_stable?" rand() + url = "https://raw.githubusercontent.com/xonixx/makesure/main/makesure_stable?" rand() tmp = executeGetLine("mktemp /tmp/makesure_new.XXXXXXXXXX") err = dl(url, tmp) if (!err && !ok("chmod +x " tmp)) err = "can't chmod +x " tmp diff --git a/makesure_stable b/makesure_stable index 90c1fbf..f18f433 100755 --- a/makesure_stable +++ b/makesure_stable @@ -475,8 +475,7 @@ function currentTimeMillis( script, res) { } function selfUpdate( url, tmp, err, newVer) { -# url = "https://raw.githubusercontent.com/xonixx/makesure/main/makesure_stable?" rand() - url = "https://raw.githubusercontent.com/xonixx/makesure/win/makesure_stable?" rand() + url = "https://raw.githubusercontent.com/xonixx/makesure/main/makesure_stable?" rand() tmp = executeGetLine("mktemp /tmp/makesure_new.XXXXXXXXXX") err = dl(url, tmp) if (!err && !ok("chmod +x " tmp)) err = "can'\''t chmod +x " tmp @@ -559,7 +558,7 @@ function addL(s, l) { return s ? s "\n" l : l } function arrPush(arr, elt) { arr[arr[-7]++] = elt } function arrLen(arr) { return 0 + arr[-7] } function arrLast(arr) { return arr[arrLen(arr)-1] } -function commandExists(cmd) { return ok("command -v " cmd " >/dev/null 2>&1") } +function commandExists(cmd) { return ok("command -v " cmd " >/dev/null") } function ok(cmd) { return system(cmd) == 0 } function isFile(path) { return ok("test -f " quoteArg(path)) } function isDir(path) { return ok("test -d " quoteArg(path)) }