working milepost
This commit is contained in:
17
ytdl.sh
Executable file
17
ytdl.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/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
|
Reference in New Issue
Block a user