summaryrefslogtreecommitdiff
path: root/bin/stream
diff options
context:
space:
mode:
Diffstat (limited to 'bin/stream')
-rwxr-xr-xbin/stream5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/stream b/bin/stream
index 0d46904..6e8e069 100755
--- a/bin/stream
+++ b/bin/stream
@@ -93,8 +93,11 @@ printf_each() {
printf "$skel" "$string"
done
}
+uniqwords() {
+ echo "$@" | tr ' ' '\012' | sort -u
+}
-HEIGHTS=$(echo "$HEIGHTS_WEBM $HEIGHTS_MPEG" | tr ' ' '\012' | sort -u)
+HEIGHTS=$(uniqwords "$HEIGHTS_WEBM $HEIGHTS_MPEG")
HEIGHTCOUNT=$(echo "$HEIGHTS" | wc --words)
# FIXME: support multiple heights