kiss: Squish alternatives list

This commit is contained in:
Dylan Araps 2020-03-22 16:26:08 +02:00
parent ffda5757d6
commit 3990e34dc0
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 2 additions and 11 deletions

13
kiss
View File

@ -1254,20 +1254,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
;;