server migration to TypeScript
This commit is contained in:
16
fetch-yt-dlp.sh
Executable file
16
fetch-yt-dlp.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Downloading latest yt-dlp build..."
|
||||
|
||||
rm -f yt-dlp
|
||||
|
||||
RELEASE=$(curl --silent "https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest" |
|
||||
grep '"tag_name":' |
|
||||
sed -E 's/.*"([^"]+)".*/\1/'
|
||||
)
|
||||
|
||||
wget "https://github.com/yt-dlp/yt-dlp/releases/download/$RELEASE/yt-dlp"
|
||||
|
||||
chmod +x yt-dlp
|
||||
|
||||
echo "Done!"
|
||||
Reference in New Issue
Block a user