diff --git a/yt b/yt index cb37d4c..3828966 100755 --- a/yt +++ b/yt @@ -18,6 +18,10 @@ set -e +if test -n "$DEBUG"; then + set -x +fi + argv0="$0" com="$1" FMT='%(title)s – %(channel)s (%(duration>%H:%M:%S)s) [%(webpage_url)s]' @@ -173,10 +177,6 @@ verify() { # replaces videos with archived versions if they are not available done } -if test -n "$DEBUG"; then - set -x -fi - for dep in \ curl \ fzf \