diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-10-11 01:12:51 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-10-11 01:12:51 -0400 |
| commit | 441ed9e1b166f4121791ccfc65020d25217910a2 (patch) | |
| tree | 7546738a88935739dc2307694ec6d4a7dd3e3d5f /ck. | |
| parent | 472c4c1ea72fe7884fa40148eb7f10d8d8f984aa (diff) | |
| download | ck4up-config-441ed9e1b166f4121791ccfc65020d25217910a2.tar.gz | |
Hopefully everything is listed in either a .conf or .txt by now.
Diffstat (limited to 'ck.')
| -rwxr-xr-x | ck. | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -19,6 +19,11 @@ last_gh_tag() { head -1 | sed 's,.*/v*\([^/]*\)</id.*,\1,' } +format_repology() { + # the whole json file is on one line... + head -1 | jq -C |grep '"version"'|cut -d'"' -f4 |sort -uV +} + DIR=~/.ck4up build="$( basename $( pwd ) )" conf="$( grep -l "^$build " $DIR/*.conf )" @@ -33,6 +38,10 @@ if grep -q "^$build .*github.*commits.atom" $conf; then postproc="last_gh_commit" elif grep -q "^$build .*github.*tags.atom" $conf ; then postproc="last_gh_tag" +elif [ "$build" = "quark" ]; then + postproc="head -1" +elif [ "$conf" = "$DIR/repology.conf" ]; then + postproc="format_repology" else postproc="sort_color" fi |
