From 58475f7f29f4ffb9581eb5e1a8a4ca4abe40e069 Mon Sep 17 00:00:00 2001 From: phoebos Date: Fri, 21 Oct 2022 09:50:35 +0200 Subject: [PATCH] kiss-outdated: fix repo name for cleaner cache (#101) If you run `kiss outdated .`, everything works but the cached SVGs are all dumped into ~/.cache/kiss/repology/ rather than ~/.cache/kiss/repology/repo/. Fix this by getting the repo name from PWD. Co-authored-by: phoebos Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/101 Co-authored-by: phoebos Co-committed-by: phoebos --- contrib/kiss-outdated | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/kiss-outdated b/contrib/kiss-outdated index 1f25e05..0fda7f4 100755 --- a/contrib/kiss-outdated +++ b/contrib/kiss-outdated @@ -333,7 +333,7 @@ repo_version() { } get_outdated() { - repo=${repo%%/} + repo=${PWD%%/} printf '\n[Checking Repology for outdated packages in %s]\n\n' "$repo" >&2 for pkg in */; do