ytdlp2strm/build.sh

25 lines
369 B
Bash

#! /bin/bash
main() {
set -eo pipefail
d="$PWD"
mkdir -p ./work.d
cd ./work.d
cleanup() {
cd "$d"
$DEBUG rm -rf ./work.d || true
}
trap cleanup EXIT
if [ ! -d ytdlp2STRM ]; then
git clone \
https://github.com/fe80Grau/ytdlp2STRM.git \
--depth=1
fi
}
if [ "$0" == "$BASH_SOURCE" ]; then
main "$@"
fi