refactor
This commit is contained in:
7
build.sh
7
build.sh
@@ -3,6 +3,11 @@
|
|||||||
main() {
|
main() {
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
|
cd_work_d
|
||||||
|
ensure_ytdlp2STRM_git
|
||||||
|
}
|
||||||
|
|
||||||
|
cd_work_d() {
|
||||||
d="$PWD"
|
d="$PWD"
|
||||||
mkdir -p ./work.d
|
mkdir -p ./work.d
|
||||||
cd ./work.d
|
cd ./work.d
|
||||||
@@ -11,7 +16,9 @@ main() {
|
|||||||
$DEBUG rm -rf ./work.d || true
|
$DEBUG rm -rf ./work.d || true
|
||||||
}
|
}
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
|
}
|
||||||
|
|
||||||
|
ensure_ytdlp2STRM_git() {
|
||||||
if [ ! -d ytdlp2STRM ]; then
|
if [ ! -d ytdlp2STRM ]; then
|
||||||
git clone --depth=1 \
|
git clone --depth=1 \
|
||||||
https://github.com/fe80Grau/ytdlp2STRM.git
|
https://github.com/fe80Grau/ytdlp2STRM.git
|
||||||
|
|||||||
Reference in New Issue
Block a user