mirror of
https://gitee.com/dgiiot/dgiot.git
synced 2024-12-02 12:18:30 +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
|