summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Newson <rnewson@apache.org>2019-10-21 18:57:51 +0100
committerGitHub <noreply@github.com>2019-10-21 18:57:51 +0100
commit506606ff2b29f72fcc9e875f1b9a33c258ad2af1 (patch)
tree07d49009eb65ce447a9479c80ed395a046cb507c
parent846783b19f0443b8b7495af9252d1539f20e146d (diff)
parentc800e4afcdab617ca3629bb7dcdc55209447d3d0 (diff)
downloadcouchdb-506606ff2b29f72fcc9e875f1b9a33c258ad2af1.tar.gz
Merge pull request #8 from apache/ken-dreyfus-hastings
Detect dreyfus/hastings correctly
-rw-r--r--rebar.config.script4
1 files changed, 2 insertions, 2 deletions
diff --git a/rebar.config.script b/rebar.config.script
index 4570bfc1b..26d6f4caa 100644
--- a/rebar.config.script
+++ b/rebar.config.script
@@ -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;