DEBUG=echo for dev
parent
e18ca83050
commit
c8b88b270f
12
build.sh
12
build.sh
|
|
@ -1,20 +1,22 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
set -euo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
d="$PWD"
|
d="$PWD"
|
||||||
mkdir -p ./work.d
|
mkdir -p ./work.d
|
||||||
cd ./work.d
|
cd ./work.d
|
||||||
cleanup() {
|
cleanup() {
|
||||||
cd "$d"
|
cd "$d"
|
||||||
rm -rf ./work.d || true
|
$DEBUG rm -rf ./work.d || true
|
||||||
}
|
}
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
|
|
||||||
git clone \
|
if [ ! -d ytdlp2STRM ]; then
|
||||||
https://github.com/fe80Grau/ytdlp2STRM.git \
|
git clone \
|
||||||
--depth=1
|
https://github.com/fe80Grau/ytdlp2STRM.git \
|
||||||
|
--depth=1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$0" == "$BASH_SOURCE" ]; then
|
if [ "$0" == "$BASH_SOURCE" ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue