summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/pkg4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/pkg b/bin/pkg
index 127b784..6ac832d 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -752,7 +752,9 @@ function pkg_info {
PRIORITY_NAME=$(real_priority "$PRIORITY")
}
if [[ -r tags ]] {
- TAGS=$(cat tags | tr "\n" " " | sed 's/ /, /g' | sed 's/, $//')
+ TAGS=($(cat tags))
+ TAGS=$TAGS
+ TAGS=${TAGS//[[:space:]]/, }
}
if [[ -d hooks ]] {
HOOKS=$(ls -m hooks)