From 6c8664cc978472481dc101279961529ae39dd0d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 1 Aug 2018 09:03:20 +0200 Subject: Filter out the old OTP versions from LATEST_ERLANG_OTP --- core/kerl.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/kerl.mk b/core/kerl.mk index a1aa824..029872c 100644 --- a/core/kerl.mk +++ b/core/kerl.mk @@ -49,8 +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 $(filter-out %-rc1 %-rc2 %-rc3,\ - $(wildcard $(KERL_INSTALL_DIR)/*[^-native]))))) +ERLANG_OTP := $(notdir $(lastword $(sort $(filter-out $(KERL_INSTALL_DIR)/OTP_R%,\ + $(filter-out %-rc1 %-rc2 %-rc3,$(wildcard $(KERL_INSTALL_DIR)/*[^-native])))))) endif ERLANG_OTP ?= -- cgit v1.2.3