From fb9d3e04f7fcfe0c8b530a7ed59476a6171ff076 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Fri, 21 Feb 2025 08:18:15 +0200 Subject: [PATCH] fix config file --- classify_videos.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/classify_videos.sh b/classify_videos.sh index 8cb9407..1de4dcf 100755 --- a/classify_videos.sh +++ b/classify_videos.sh @@ -6,6 +6,7 @@ if [ -z "${HOME}" ]; then HOME=$(grep "$(whoami)" /etc/passwd | awk 'BEGIN {FS=":"} {print($6)}') fi fi +CONFIG_FILE="${HOME}/.config/get_youtube_videos.conf" download_dir="$(grep download_dir "${CONFIG_FILE}" | awk 'BEGIN {FS="="} {print($2)}' | sed 's/"//g')" if [ "${download_dir}" == "" ]; then download_dir="${HOME}/downloaded_youtube_videos"