aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-28 16:50:38 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-28 16:50:38 +0000
commit74d37ca68e1c5367a83365cbfa3b5877a20a5500 (patch)
tree50f38e4989a0b1022d6608dea6b6ddc7c5014ff1
parent7c11806ce8a4aeff3b8c4d1610dbd66e2975c2a7 (diff)
downloadcpt-74d37ca68e1c5367a83365cbfa3b5877a20a5500.tar.gz
kiss: Don't run sed each iteration of loop
FossilOrigin-Name: 98795b2d1e052a360503d2c1abdfeebbc08167b06866acffb3b246912c756ce1
-rwxr-xr-xkiss5
1 files changed, 2 insertions, 3 deletions
diff --git a/kiss b/kiss
index d81f19e..77f100b 100755
--- a/kiss
+++ b/kiss
@@ -1254,9 +1254,8 @@ args() {
# Go over each alternative and format the file
# name for listing. (pkg_name>usr>bin>ls)
for pkg in *; do
- [ "$pkg" = '*' ] ||
- printf '%s\n' "$pkg" | sed 's|>| /|;s|>|/|g'
- done
+ [ "$pkg" = '*' ] || printf '%s\n' "$pkg"
+ done | sed 's|>| /|;s|>|/|g'
fi
;;