mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-21 07:12:04 +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/
|
||||
Preview.html
|
||||
default.profraw
|
||||
.api
|
||||
.build
|
||||
.bundle
|
||||
.env.secret*
|
||||
*.storekit
|
||||
tmp
|
||||
*.sqlite-*
|
||||
|
@ -1,15 +1,12 @@
|
||||
#!/bin/bash
|
||||
SOURCE=".api"
|
||||
DESTINATION="Passepartout/Library/Sources/CommonAPI/API"
|
||||
API_VERSION="v5"
|
||||
|
||||
mkdir tmp
|
||||
cd tmp
|
||||
if [[ ! `git clone https://github.com/passepartoutvpn/api --depth 1` ]]; then
|
||||
cd api
|
||||
git pull
|
||||
fi
|
||||
cd ../..
|
||||
rm -rf $SOURCE
|
||||
git clone https://github.com/passepartoutvpn/api --depth 1 $SOURCE
|
||||
|
||||
rm -rf $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