Skip to content

Commit

Permalink
Detect dreyfus/hastings correctly
Browse files Browse the repository at this point in the history
The code:lib_dir test only works if those projects are compiled first,
which is not guaranteed.
  • Loading branch information
rnewson committed Oct 21, 2019
1 parent 846783b commit c800e4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rebar.config.script
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
% License for the specific language governing permissions and limitations under
% the License.

HaveDreyfus = code:lib_dir(dreyfus) /= {error, bad_name}.
HaveHastings = code:lib_dir(hastings) /= {error, bad_name}.
HaveDreyfus = element(1, file:list_dir("../dreyfus")) == ok.
HaveHastings = element(1, file:list_dir("../hastings")) == ok.

CurrOpts = case lists:keyfind(erl_opts, 1, CONFIG) of
{erl_opts, Opts} -> Opts;
Expand Down

0 comments on commit c800e4a

Please sign in to comment.