mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-22 15:52:08 +00:00
Get rid of downloaded API after update
This commit is contained in:
parent
c0dc2181e3
commit
fc711ae98f
2
.gitignore
vendored
2
.gitignore
vendored
@ -15,9 +15,9 @@ templates/
|
|||||||
vendor/
|
vendor/
|
||||||
Preview.html
|
Preview.html
|
||||||
default.profraw
|
default.profraw
|
||||||
|
.api
|
||||||
.build
|
.build
|
||||||
.bundle
|
.bundle
|
||||||
.env.secret*
|
.env.secret*
|
||||||
*.storekit
|
*.storekit
|
||||||
tmp
|
|
||||||
*.sqlite-*
|
*.sqlite-*
|
||||||
|
@ -1,15 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
SOURCE=".api"
|
||||||
DESTINATION="Passepartout/Library/Sources/CommonAPI/API"
|
DESTINATION="Passepartout/Library/Sources/CommonAPI/API"
|
||||||
API_VERSION="v5"
|
API_VERSION="v5"
|
||||||
|
|
||||||
mkdir tmp
|
rm -rf $SOURCE
|
||||||
cd tmp
|
git clone https://github.com/passepartoutvpn/api --depth 1 $SOURCE
|
||||||
if [[ ! `git clone https://github.com/passepartoutvpn/api --depth 1` ]]; then
|
|
||||||
cd api
|
|
||||||
git pull
|
|
||||||
fi
|
|
||||||
cd ../..
|
|
||||||
|
|
||||||
rm -rf $DESTINATION
|
rm -rf $DESTINATION
|
||||||
mkdir -p $DESTINATION
|
mkdir -p $DESTINATION
|
||||||
cp -rp tmp/api/$API_VERSION $DESTINATION
|
mv $SOURCE/$API_VERSION $DESTINATION
|
||||||
|
rm -rf $SOURCE
|
||||||
|
Loading…
Reference in New Issue
Block a user