build.sh clones from github
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/work.d
|
||||||
21
build.sh
21
build.sh
@@ -1,5 +1,22 @@
|
|||||||
#! /bin/bash
|
#! /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
|
||||||
|
|||||||
Reference in New Issue
Block a user