#! /bin/bash
main() {
set -euo pipefail
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