kiss-repo

personal package repository
git clone git://bvnf.space/kiss-repo.git
Log | Files | Refs | README | LICENSE

commit 4b3c2547c1c0b9c41b5195ab7a2101b030e4dc97
parent f84e4eab1280125ab092ff87fd712673c8fbd8b0
Author: aabacchus <ben@bvnf.space>
Date:   Wed,  5 Jan 2022 18:18:22 +0000

kiss-find: use my release

Diffstat:
Mkiss-find/checksums | 2+-
Dkiss-find/files/kiss-find.sh | 41-----------------------------------------
Mkiss-find/sources | 2+-
3 files changed, 2 insertions(+), 43 deletions(-)

diff --git a/kiss-find/checksums b/kiss-find/checksums @@ -1 +1 @@ -6514a13c936b844b3b84abdebbe4408b5d524300c1c65359d9dccfa72967283a +468db14ed789988cc6e60edddf190b48f38eb95fbc55f506c425e55a80a299fa diff --git a/kiss-find/files/kiss-find.sh b/kiss-find/files/kiss-find.sh @@ -1,41 +0,0 @@ -#!/bin/sh -e -# Search for packages across every known repository - -VERSION="1" -DB_PATH="${XDG_CACHE_HOME:-${HOME}/.cache}"/kiss-find/db.gz -UPDATE_URL="https://github.com/jedahan/kiss-find/releases/download/latest/kiss-find.gz" - -mkdir -p "$(dirname "${DB_PATH}")" - -if [ -z "$1" ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then - echo "kiss-find ${VERSION}" - echo "$0 <query> :: Search for packages across every known repository" - echo "$0 -u :: Update package database" - exit -elif [ "$1" = "-u" ]; then - command -v curl >/dev/null || command -v wget >/dev/null || { - echo "please install curl or wget to update" >&2 && exit - } - - command -v curl >/dev/null && \ - command curl --location --silent \ - --user-agent "kiss-find/${VERSION}" \ - "${UPDATE_URL}" \ - --output "${DB_PATH}" - - command -v wget >/dev/null && \ - command wget -U "kiss-find/${VERSION}" "${UPDATE_URL}" -O "${DB_PATH}" - - echo ":: Update done" >&2 - exit -fi - -set -u # was required for the -z check above, can enable now - -if [ ! -f "${DB_PATH}" ]; then - echo ":: Please run with '-u' to update" >&2 - exit -fi - -zcat "${DB_PATH}" | jq --arg query "$@" \ - 'to_entries[] | select(.key | ascii_downcase | contains($query | ascii_downcase))' diff --git a/kiss-find/sources b/kiss-find/sources @@ -1 +1 @@ -https://github.com/jedahan/kiss-find/raw/main/package/kiss-find/files/kiss-find.sh +https://github.com/aabacchus/kiss-find/releases/download/v2.1/kiss-find-2.1.tar.gz