| Adding mkdir to yt download script. - dotfiles - These are my dotfiles. There … | |
| git clone git://jay.scot/dotfiles | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit ab492840bba4d67e600edf06e755353a792346e8 | |
| parent 39c100a9469c77bef532665a87e240b1d67a7eea | |
| Author: Jay Scott <[email protected]> | |
| 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(-) | |
| --- | |
| 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}" \ |