#!/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