From 8257c377f884e950262df99d6e31cad3da038ab1 Mon Sep 17 00:00:00 2001 From: Steph Enders Date: Mon, 19 Aug 2024 10:05:45 -0400 Subject: Clarify and fix printing of error message on missing args The variable wasn't wrapped in quotes in echo and reversing the lines made things much more clear --- yt-dlp-best | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/yt-dlp-best b/yt-dlp-best index 9b239f0..d4f3f9e 100755 --- a/yt-dlp-best +++ b/yt-dlp-best @@ -1,11 +1,10 @@ #!/usr/bin/env bash -USAGE="Fetches the best format of a YT video (ideally in mp4) -yt-dlp-best \"URL\" -" +USAGE="./yt-dlp-best \"URL\" + Fetches the best format of a YT video (ideally in mp4)" if [ $# -ne 1 ]; then - echo $USAGE + echo "$USAGE" exit 1 fi -- cgit v1.2.3-54-g00ecf