18 lines
320 B
Bash
Executable File
18 lines
320 B
Bash
Executable File
#!/bin/bash
|
|
# Either builds yt-dlp docker container or runs it
|
|
|
|
if [[ "$1" == "" ]]; then
|
|
echo "Arg: build"
|
|
echo "Arg: run [yt-dlp target URL]"
|
|
fi
|
|
|
|
if [[ "$1" == "build" ]]; then
|
|
echo "Building"
|
|
docker build -t ytdl .
|
|
fi
|
|
|
|
if [[ "$1" == "run" ]]; then
|
|
echo "Running"
|
|
docker run -v vid:/vid ytdl /yt-dlp $2
|
|
fi
|