chore(sync-apps): Update script to exclude web_hook and auth_http

These two libs are permanently diverged, there is no way to auto
sync now and in the future.
This commit is contained in:
Zaiming Shi 2021-01-18 19:18:44 +01:00
parent 7f57a5548d
commit 432b92d6af
1 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,8 @@ set -euo pipefail
force="${1:-no}"
apps=(
"emqx_auth_http"
# "emqx_auth_http" # permanently diverged
# "emqx_web_hook" # permanently diverged
"emqx_auth_jwt"
"emqx_auth_ldap"
"emqx_auth_mongo"
@ -30,14 +31,13 @@ apps=(
"emqx_sn"
"emqx_stomp"
"emqx_telemetry"
"emqx_web_hook")
)
if git status --porcelain | grep -qE 'apps/'; then
echo 'apps dir is not git-clear, refuse to sync'
# exit 1
fi
rm -rf apps/emqx_*
mkdir -p tmp/
download_zip() {
@ -73,6 +73,7 @@ extract_zip(){
fi
local file="tmp/${app}-${vsn_dft}.zip"
local repo="$(echo "$app" | sed 's#_#-#g')"
rm -rf "apps/${app}/"
unzip "$file" -d apps/
mv "apps/${repo}-${vsn}/" "apps/$app/"
}