meta: superficial changes
This commit is contained in:
parent
d0763ac5ed
commit
00b8e57aa2
1 changed files with 4 additions and 4 deletions
|
@ -1,17 +1,17 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
note() { printf >&2 '\033[1m%s\033[0m\n' "$*" ;}
|
note() { printf >&2 '\033[1m%s\033[0m\n' "$*" ;}
|
||||||
|
|
||||||
latest() { : \
|
latest() { : \
|
||||||
&& url="${1?huh}" \
|
&& url="${1?missing argument}" \
|
||||||
&& { [ "${url#"https://github.com/"}" = "$url" ] \
|
&& { [ "${url#"https://github.com/"}" = "$url" ] \
|
||||||
&& re='/commit/' || re='/spoofed_commit_check/' \
|
&& re='/commit/' || re='/spoofed_commit_check/' \
|
||||||
;} \
|
;} \
|
||||||
&& curl $flags "$url" | grep -F "$re" | grep -Eo '[0-9a-f]{40}' \
|
&& curl $flags "$url" | grep -F "$re" | grep -Eo '[0-9a-f]{40}' \
|
||||||
;}
|
;}
|
||||||
|
|
||||||
: \
|
any=0 flags="-L --no-progress-meter" n="$(printf '\n.')" n="${n%.}" \
|
||||||
&& any=0 flags="-L --no-progress-meter" n="$(printf '\n.')" n="${n%.}" \
|
df=Dockerfile gh='https://github.com/' sr='https://git.sr.ht/~' \
|
||||||
&& df=Dockerfile gh='https://github.com/' sr='https://git.sr.ht/~' \
|
|
||||||
&& set -- \
|
&& set -- \
|
||||||
cosmo COSMO_COMMIT ${gh}jart/cosmopolitan \
|
cosmo COSMO_COMMIT ${gh}jart/cosmopolitan \
|
||||||
cosmo-kuroko KUROKO_COMMIT ${gh}kuroko-lang/kuroko \
|
cosmo-kuroko KUROKO_COMMIT ${gh}kuroko-lang/kuroko \
|
||||||
|
|
Loading…
Add table
Reference in a new issue