DEBUG=echo for dev

main
Bel LaPointe 2025-05-25 12:35:09 -06:00
parent e18ca83050
commit c8b88b270f
1 changed files with 7 additions and 5 deletions

View File

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