Merge branch 'master' of git.axenov.dev:anthony/shell

This commit is contained in:
Anthony Axenov 2025-01-20 16:11:56 +08:00
commit bacd71304a
Signed by: anthony
GPG Key ID: EA9EC32FF7CCD4EC

View File

@ -23,7 +23,12 @@ installed() {
mkdir -p "$HOME/install/youtube-dl" "$HOME/.local/bin"
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
! 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" && \