summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteph Enders <steph@senders.io>2024-08-19 10:05:45 -0400
committerSteph Enders <steph@senders.io>2024-08-19 10:08:21 -0400
commit8257c377f884e950262df99d6e31cad3da038ab1 (patch)
tree1864d614e39e4c075c0cc7eed15f10745b1ff0f2
parente1efe51f4fe1bb0ec89383b146f395a08dd891de (diff)
Clarify and fix printing of error message on missing argsmain
The variable wasn't wrapped in quotes in echo and reversing the lines made things much more clear
-rwxr-xr-xyt-dlp-best7
1 files 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