Adding mkdir to yt download script. - dotfiles - These are my dotfiles. There are many like it, but these are mine.
(HTM) git clone git://jay.scot/dotfiles
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit ab492840bba4d67e600edf06e755353a792346e8
(DIR) parent 39c100a9469c77bef532665a87e240b1d67a7eea
(HTM) Author: Jay Scott <me@jay.scot>
Date: Sun, 8 Jun 2025 19:54:00 +0100
Adding mkdir to yt download script.
Diffstat:
M bin/ytd | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/bin/ytd b/bin/ytd
@@ -47,6 +47,8 @@ main() {
get_video() {
info "Fetching latest from $1"
+ mkdir -p "${savepath}/${1}"
+
"$yt" -q --restrict-filename \
--download-archive "${cachedir}/${1}" \
"${baseurl}${2}" \