From e18ca83050bd9678cbc66ea0d90056c2e9731a9d Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Sun, 25 May 2025 12:34:20 -0600 Subject: [PATCH] build.sh clones from github --- .gitignore | 1 + build.sh | 21 +++++++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8626019 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/work.d diff --git a/build.sh b/build.sh index d0f6a0b..0b6ac97 100644 --- a/build.sh +++ b/build.sh @@ -1,5 +1,22 @@ #! /bin/bash -date +main() { + set -euo pipefail -exit 0 + d="$PWD" + mkdir -p ./work.d + cd ./work.d + cleanup() { + cd "$d" + rm -rf ./work.d || true + } + trap cleanup EXIT + + git clone \ + https://github.com/fe80Grau/ytdlp2STRM.git \ + --depth=1 +} + +if [ "$0" == "$BASH_SOURCE" ]; then + main "$@" +fi