fix dashboard

This commit is contained in:
lsxredrain 2021-08-17 11:56:08 +08:00
parent 4a8d973c55
commit 660fc66a97

View File

@ -9,16 +9,8 @@ RELEASE_ASSET_FILE="emqx-dashboard.zip"
DASHBOARD_PATH='lib-ce/emqx_dashboard/priv' DASHBOARD_PATH='lib-ce/emqx_dashboard/priv'
DIRECT_DOWNLOAD_URL="http://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/dgiot_release/emqx_dashboard.zip" DIRECT_DOWNLOAD_URL="http://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/dgiot_release/emqx_dashboard.zip"
case $(uname) in
*Darwin*) SED="sed -E";;
*) SED="sed -r";;
esac
version() { if [ -d "$DASHBOARD_PATH/www" ]; then
grep -oE 'github_ref: (.*)' "$DASHBOARD_PATH/www/version" | $SED 's|github_ref: refs/tags/(.*)|\1|g'
}
if [ -d "$DASHBOARD_PATH/www" ] && [ "$(version)" = "$VERSION" ]; then
exit 0 exit 0
fi fi