Skip to content

Commit

Permalink
fix(build): when quic in rebar3 _checkouts
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhuyan committed Nov 27, 2023
1 parent 9dbb916 commit b4a90cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down

0 comments on commit b4a90cd

Please sign in to comment.