diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-28 16:50:38 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-28 16:50:38 +0000 |
commit | 74d37ca68e1c5367a83365cbfa3b5877a20a5500 (patch) | |
tree | 50f38e4989a0b1022d6608dea6b6ddc7c5014ff1 | |
parent | 7c11806ce8a4aeff3b8c4d1610dbd66e2975c2a7 (diff) | |
download | cpt-74d37ca68e1c5367a83365cbfa3b5877a20a5500.tar.gz |
kiss: Don't run sed each iteration of loop
FossilOrigin-Name: 98795b2d1e052a360503d2c1abdfeebbc08167b06866acffb3b246912c756ce1
-rwxr-xr-x | kiss | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 ;; |