From b4a90cdc61aa97a9870030829dab21f571cfdca8 Mon Sep 17 00:00:00 2001 From: William Yang Date: Mon, 27 Nov 2023 10:08:28 +0100 Subject: [PATCH] fix(build): when quic in rebar3 _checkouts --- build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index ba55f40e..0f08d35f 100755 --- a/build.sh +++ b/build.sh @@ -93,7 +93,9 @@ else fi ## workaround for emqx forked rebar3 -if ([ -n $REBAR_DEPS_DIR ] && [ $(realpath -P "${REBAR_DEPS_DIR}/quicer/priv") != "${PWD}/priv" ]); +if [ -n "$REBAR_DEPS_DIR" ] \ + && [ -d "${REBAR_DEPS_DIR}/quicer" ] \ + && [ "$(realpath -P "${REBAR_DEPS_DIR}/quicer/priv")" != "${PWD}/priv" ]; then cp -r priv/* "${REBAR_DEPS_DIR}/quicer/priv/" cp include/quicer_vsn.hrl "${REBAR_DEPS_DIR}/quicer/include/"