From 00b8e57aa2cc7f602285fa50411350d711653478 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Thu, 13 Oct 2022 12:36:11 -0700 Subject: [PATCH] meta: superficial changes --- auto-update | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/auto-update b/auto-update index d7e0a5b..17fe505 100755 --- a/auto-update +++ b/auto-update @@ -1,17 +1,17 @@ #!/usr/bin/env sh note() { printf >&2 '\033[1m%s\033[0m\n' "$*" ;} + latest() { : \ - && url="${1?huh}" \ + && url="${1?missing argument}" \ && { [ "${url#"https://github.com/"}" = "$url" ] \ && re='/commit/' || re='/spoofed_commit_check/' \ ;} \ && curl $flags "$url" | grep -F "$re" | grep -Eo '[0-9a-f]{40}' \ ;} -: \ - && any=0 flags="-L --no-progress-meter" n="$(printf '\n.')" n="${n%.}" \ - && df=Dockerfile gh='https://github.com/' sr='https://git.sr.ht/~' \ +any=0 flags="-L --no-progress-meter" n="$(printf '\n.')" n="${n%.}" \ +df=Dockerfile gh='https://github.com/' sr='https://git.sr.ht/~' \ && set -- \ cosmo COSMO_COMMIT ${gh}jart/cosmopolitan \ cosmo-kuroko KUROKO_COMMIT ${gh}kuroko-lang/kuroko \