build.sh clones from github

main
Bel LaPointe 2025-05-25 12:34:20 -06:00
parent 86b358d636
commit e18ca83050
2 changed files with 20 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/work.d

View File

@ -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