This is an automated email from the ASF dual-hosted git repository. jiafengzheng pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris-flink-connector.git
The following commit(s) were added to refs/heads/master by this push: new 500dba0 add tips for Mac OS users in case meeting getopt error (#59) 500dba0 is described below commit 500dba08e42f0d849e6c95f2fc9bde9f927e0f08 Author: caoliang-web <71004656+caoliang-...@users.noreply.github.com> AuthorDate: Tue Sep 6 16:43:51 2022 +0800 add tips for Mac OS users in case meeting getopt error (#59) add tips for Mac OS users in case meeting getopt error --- flink-doris-connector/build.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/flink-doris-connector/build.sh b/flink-doris-connector/build.sh index f54fcee..d0ca34d 100755 --- a/flink-doris-connector/build.sh +++ b/flink-doris-connector/build.sh @@ -42,6 +42,16 @@ usage() { exit 1 } +# we use GNU enhanced version getopt command here for long option names, rather than the original version. +# check the version of the getopt command before using. +getopt -T > /dev/null && echo " + The GNU version of getopt command is required. + On Mac OS, you can use Homebrew to install gnu-getopt: + 1. brew install gnu-getopt # install gnu-getopt + 2. GETOPT_PATH=\`brew --prefix gnu-getopt\` # get the gnu-getopt execute path + 3. export PATH=\"\${GETOPT_PATH}/bin:\$PATH\" # set gnu-getopt as default getopt +" && exit 1 + OPTS=$(getopt \ -n $0 \ -o '' \ --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org