diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/stream | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |