Browse Source

Don't use release candidates when LATEST_ERLANG_OTP=1

Loïc Hoguin 7 years ago
parent
commit
d30dda39b0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core/kerl.mk

+ 2 - 1
core/kerl.mk

@@ -49,7 +49,8 @@ distclean-kerl:
 # Allow users to select which version of Erlang/OTP to use for a project.
 
 ifneq ($(strip $(LATEST_ERLANG_OTP)),)
-ERLANG_OTP := $(notdir $(lastword $(sort $(wildcard $(KERL_INSTALL_DIR)/*[^-native]))))
+ERLANG_OTP := $(notdir $(lastword $(sort $(filter-out %-rc1 %-rc2 %-rc3,\
+	$(wildcard $(KERL_INSTALL_DIR)/*[^-native])))))
 endif
 
 ERLANG_OTP ?=