From 40d9597bad849541650cd6dea8107e67a49f5853 Mon Sep 17 00:00:00 2001 From: casjay Date: Fri, 7 Oct 2022 15:59:25 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/entrypoint-youtube-dl.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/bin/entrypoint-youtube-dl.sh b/bin/entrypoint-youtube-dl.sh index ed6f5ff..fc6bd12 100755 --- a/bin/entrypoint-youtube-dl.sh +++ b/bin/entrypoint-youtube-dl.sh @@ -123,7 +123,19 @@ healthcheck) # Docker healthcheck if [ $# -eq 0 ]; then __exec_bash "/bin/bash" else - __exec_bash "/bin/bash" + case "$1" in + audio) + shift 1 + ytda "$@" + ;; + video) + shift 1 + ytdv "$@" + ;; + *) + ytda "$@" + ytdv "$@" + esac fi exitCode=$? ;;