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
main() {
set -euo pipefail
set -eo pipefail
d="$PWD"
mkdir -p ./work.d
cd ./work.d
cleanup() {
cd "$d"
rm -rf ./work.d || true
$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