fix config file

This commit is contained in:
Antonio J. Delgado 2025-02-21 08:18:15 +02:00
parent 17326764a4
commit fb9d3e04f7

View file

@ -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"