diff --git a/.github/container/ejabberdctl.template b/.github/container/ejabberdctl.template index ef481cc58e6..d88b5fe8d5c 100755 --- a/.github/container/ejabberdctl.template +++ b/.github/container/ejabberdctl.template @@ -265,7 +265,7 @@ help() # dynamic node name helper uid() { - ERTSVERSION="$("$ERL" -version 2>&1 | sed 's|.*\([0-9][0-9]\).*|\1|g')" + ERTSVERSION="$("$ERL" -version 2>&1 | sed 's|.* \([0-9]*[0-9]\).*|\1|g')" if [ $ERTSVERSION -lt 11 ] ; then # otp 23.0 includes erts 11.0 # Erlang/OTP lower than 23, which doesn's support dynamic node code N=1 diff --git a/ejabberdctl.template b/ejabberdctl.template index 5d132ccc657..6f5fe6a23e2 100755 --- a/ejabberdctl.template +++ b/ejabberdctl.template @@ -253,7 +253,7 @@ help() # dynamic node name helper uid() { - ERTSVERSION="$("$ERL" -version 2>&1 | sed 's|.*\([0-9][0-9]\).*|\1|g')" + ERTSVERSION="$("$ERL" -version 2>&1 | sed 's|.* \([0-9]*[0-9]\).*|\1|g')" if [ $ERTSVERSION -lt 11 ] ; then # otp 23.0 includes erts 11.0 # Erlang/OTP lower than 23, which doesn's support dynamic node code N=1