Skip to content

Commit

Permalink
fix: missing linebreak in quality-miss printf (#1043)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrempiva authored Feb 23, 2023
1 parent 60a061b commit 008dc04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ani-cli
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

version_number="4.1.2"
version_number="4.1.3"

# UI

Expand Down Expand Up @@ -33,7 +33,7 @@ die() {

help_info() {
printf "
Usage:
Usage:
%s [options] [query]
%s [query] [options]
%s [options] [query] [options]
Expand Down Expand Up @@ -152,7 +152,7 @@ select_quality() {
worst) result=$(printf "%s" "$links" | grep -E '^[0-9]{3,4}' | tail -n1) ;;
*) result=$(printf "%s" "$links" | grep -m 1 "$1") ;;
esac
[ -z "$result" ] && printf "Specified quality not found, defaulting to best" 1>&2 && result=$(printf "%s" "$links" | head -n1)
[ -z "$result" ] && printf "Specified quality not found, defaulting to best\n" 1>&2 && result=$(printf "%s" "$links" | head -n1)
printf "%s" "$result" | cut -d'>' -f2
}

Expand Down

0 comments on commit 008dc04

Please sign in to comment.