From 7057d83ad9a9effdad6f70fe77c4cc37cfb09712 Mon Sep 17 00:00:00 2001 From: DTB Date: Wed, 8 Nov 2023 18:32:39 -0700 Subject: [PATCH] move debug set -x up with set -e for consistency --- yt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 \