diff options
author | merakor <cem@ckyln.com> | 2020-04-02 11:21:06 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-04-02 11:21:06 +0000 |
commit | eb39aecd70f3b134af703d6a288307f608ef0714 (patch) | |
tree | 0eae5ee308f11cb57606901b3bf7ba9bb3e00299 | |
parent | 37fded56915dd0ec278fb06a701612f09751489c (diff) | |
download | cpt-eb39aecd70f3b134af703d6a288307f608ef0714.tar.gz |
kiss: Squish alternatives list
FossilOrigin-Name: 14afb198e50b12667d964735f21e300d58a36b801984fc36df8feb38b7837416
-rwxr-xr-x | kiss | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -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 ;; |