youtube-dl misc
This commit is contained in:
@@ -23,7 +23,12 @@ installed() {
|
|||||||
mkdir -p "$HOME/install/youtube-dl" "$HOME/.local/bin"
|
mkdir -p "$HOME/install/youtube-dl" "$HOME/.local/bin"
|
||||||
|
|
||||||
if installed git; then
|
if installed git; then
|
||||||
git clone https://github.com/ytdl-org/youtube-dl.git "$HOME/install/youtube-dl" --depth=1 --single-branch
|
if [[ -d "$HOME/install/youtube-dl" ]]; then
|
||||||
|
cd "$HOME/install/youtube-dl"
|
||||||
|
git pull
|
||||||
|
else
|
||||||
|
git clone https://github.com/ytdl-org/youtube-dl.git "$HOME/install/youtube-dl" --depth=1 --single-branch
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
! installed wget && sudo apt install -y wget
|
! installed wget && sudo apt install -y wget
|
||||||
wget https://github.com/ytdl-org/youtube-dl/archive/refs/heads/master.zip -O "$HOME/install/youtube-dl.zip" && \
|
wget https://github.com/ytdl-org/youtube-dl/archive/refs/heads/master.zip -O "$HOME/install/youtube-dl.zip" && \
|
||||||
|
|||||||
Reference in New Issue
Block a user