main
Bel LaPointe 2025-05-25 12:36:18 -06:00
parent c01dfef4ff
commit e040f74873
1 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,11 @@
main() { main() {
set -eo pipefail set -eo pipefail
cd_work_d
ensure_ytdlp2STRM_git
}
cd_work_d() {
d="$PWD" d="$PWD"
mkdir -p ./work.d mkdir -p ./work.d
cd ./work.d cd ./work.d
@ -11,7 +16,9 @@ main() {
$DEBUG rm -rf ./work.d || true $DEBUG rm -rf ./work.d || true
} }
trap cleanup EXIT trap cleanup EXIT
}
ensure_ytdlp2STRM_git() {
if [ ! -d ytdlp2STRM ]; then if [ ! -d ytdlp2STRM ]; then
git clone --depth=1 \ git clone --depth=1 \
https://github.com/fe80Grau/ytdlp2STRM.git https://github.com/fe80Grau/ytdlp2STRM.git