kiss: Don't run sed each iteration of loop

This commit is contained in:
Dylan Araps 2020-01-28 18:50:39 +02:00
parent c4c9953f66
commit 863aec4f06
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 2 additions and 3 deletions

5
kiss
View File

@ -1254,9 +1254,8 @@ args() {
# Go over each alternative and format the file # Go over each alternative and format the file
# name for listing. (pkg_name>usr>bin>ls) # name for listing. (pkg_name>usr>bin>ls)
for pkg in *; do for pkg in *; do
[ "$pkg" = '*' ] || [ "$pkg" = '*' ] || printf '%s\n' "$pkg"
printf '%s\n' "$pkg" | sed 's|>| /|;s|>|/|g' done | sed 's|>| /|;s|>|/|g'
done
fi fi
;; ;;