dotfiles/.bin/ytdl
2024-02-14 07:55:58 +01:00

13 lines
179 B
Bash
Executable File

#!/bin/sh -xe
if [ -z $2 ]
then
echo "First argument should be a category."
exit 2
fi
mkdir -p "$HOME/ytdl/$1/"
ksh-update-completions &
cd "$HOME/ytdl/$1/"
yt-dlp "$2"