-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-yt-dlp
More file actions
executable file
·34 lines (31 loc) · 1.25 KB
/
install-yt-dlp
File metadata and controls
executable file
·34 lines (31 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash
#
# #############################################################
# Project: scripts (none)
# File...: install-yt-dlp
# Created: quinta, 2022/02/10 - 12:53:52
# Author.: Fabiano Matos, fgm (fabiano.matoz@gmail.com) (fgm@7c4)
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Last Modified: Monday, 2024/12/09 - 17:39:34
# Modified By..: @fbnmtz, (fabiano.matoz@gmail.com)
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Version: 0.0.2.27
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Description:
# >
# ############################################################################
# HISTORY:
#
# #############################################################
#
# shellcheck disable=SC1090
source "$xSHELL_INIT" 2> /dev/null || { echo "Error loading 'xSHELL' lib!"; exit 1; }
xrequirements curl chmod
if [ ! -f "$HOME/bin/yt-dlp" ]; then
echo "installing..."
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o "$HOME/bin/yt-dlp"
chmod a+rx "$HOME/bin/yt-dlp"
echo "done"
else
echo "'yt-dlp' already installed"
fi