From c8b88b270fb02d7de3d57a7877b8f55b735b04bd Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Sun, 25 May 2025 12:35:09 -0600 Subject: [PATCH] DEBUG=echo for dev --- build.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/build.sh b/build.sh index 0b6ac97..8008d7f 100644 --- a/build.sh +++ b/build.sh @@ -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 - git clone \ - https://github.com/fe80Grau/ytdlp2STRM.git \ - --depth=1 + if [ ! -d ytdlp2STRM ]; then + git clone \ + https://github.com/fe80Grau/ytdlp2STRM.git \ + --depth=1 + fi } if [ "$0" == "$BASH_SOURCE" ]; then