blob: 8671b03b2b54627462c75c00dea7706e065546ca (
plain)
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
|
#!/usr/bin/env bash
#
# Install yt-splitter package manager.
#
# Parameters
SHARE="$1"
LIB="$2"
# Include basic functions
. $LIB/trashman/functions || exit 1
# Requirements
trashman_require wget ffmpeg
# Dependency: youtube-dl
hoarder install youtube-dl
# Additional parameters
VERSION="0.1.2"
URL="https://github.com/redsolver/yt-splitter/releases/download/v$VERSION/yt-splitter-linux"
DEST="$HOME/.local/bin/yt-splitter"
# Remove any older version
rm -f $DEST
# Download and install
wget "$URL" -O "$DEST" && chmod +x "$DEST" || exit 1
|