mirror of
https://gitee.com/dgiiot/dgiot.git
synced 2024-11-30 03:07:40 +08:00
17 lines
370 B
Bash
Executable File
17 lines
370 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
url="$2"
|
|
|
|
## ensure enterprise code is not pushed to public repo
|
|
if [ -f 'EMQX_ENTERPRISE' ]; then
|
|
if [[ "$url" != *emqx-enterprise* ]]; then
|
|
echo "$(tput setaf 1)error: enterprise_code_to_non_enterprise_repo"
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
## this triggers a tag vs release version check before pushing a tag
|
|
./pkg-vsn.sh
|