forked from kiss-community/kiss
kiss: Don't run sed each iteration of loop
This commit is contained in:
parent
c4c9953f66
commit
863aec4f06
5
kiss
5
kiss
@ -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
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user