fix download dir
This commit is contained in:
parent
b62a0d0b6a
commit
62bb7d96ba
1 changed files with 4 additions and 3 deletions
|
@ -20,7 +20,8 @@ else
|
||||||
fi
|
fi
|
||||||
"__src_folder__/get_youtube_videos.sh" "${config[@]}" "${@}"
|
"__src_folder__/get_youtube_videos.sh" "${config[@]}" "${@}"
|
||||||
|
|
||||||
|
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"
|
download_dir="${HOME}/downloaded_youtube_videos"
|
||||||
# shellcheck disable=SC1090
|
fi
|
||||||
source "${CONFIG_FILE}"
|
|
||||||
chmod 0777 "${download_dir}" -R
|
chmod 0777 "${download_dir}" -R
|
||||||
|
|
Loading…
Reference in a new issue