cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 509f91cf841c89abd92427cf4c38ef45c5554f3a
parent bca41604d7ab29e698c46c55ed04fba202c8cb5a
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Sun, 22 Mar 2020 16:26:08 +0200

kiss: Squish alternatives list

Diffstat:
Mkiss | 13++-----------
1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/kiss b/kiss @@ -1259,20 +1259,11 @@ args() { pkg_swap "$@" else - set +f - - log Alternatives: - # Go over each alternative and format the file # name for listing. (pkg_name>usr>bin>ls) - for pkg in "$sys_db/../choices"/*; do + set +f; for pkg in "$sys_db/../choices"/*; do printf '%s\n' "${pkg##*/}" - done | - - sed 's|>| /|; s|>|/|g; /\*/d' - - log note "Think about what you are doing" - log note "for this feature requires thought" + done | sed 's|>| /|; s|>|/|g; /\*/d' fi ;;