diff options
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 |
