dotfiles/.bin/ytdl

13 lines
178 B
Plaintext
Raw Normal View History

#!/bin/sh -e
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"