File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 75
75
76
76
77
77
echo " Installing the when CLI"
78
- ERLANG_VERSION=$( erl -eval ' erlang:display(erlang:system_info(otp_release)), halt().' -noshell | tr -d ' "\r' )
78
+ ERLANG_VERSION=$( erl -eval ' erlang:display(erlang:system_info(otp_release)), halt().' -noshell | tail -n1 | tr -d ' "\r' )
79
+ echo " Erlang version: $ERLANG_VERSION "
79
80
install_cmd mv ~ /.toolbox/when_otp_$ERLANG_VERSION $INSTALL_PATH /when
80
81
install_cmd chmod +x $INSTALL_PATH /when
81
82
if [[ $? -eq 0 ]]; then
Original file line number Diff line number Diff line change @@ -140,7 +140,8 @@ if [[ `uname` != "Darwin" ]]; then
140
140
fi
141
141
142
142
echo " Installing the when CLI"
143
- ERLANG_VERSION=$( erl -eval ' erlang:display(erlang:system_info(otp_release)), halt().' -noshell | tr -d ' "\r' )
143
+ ERLANG_VERSION=$( erl -eval ' erlang:display(erlang:system_info(otp_release)), halt().' -noshell | tail -n1 | tr -d ' "\r' )
144
+ echo " Erlang version: $ERLANG_VERSION "
144
145
install_cmd mv ~ /.toolbox/when_otp_$ERLANG_VERSION $INSTALL_PATH /when
145
146
install_cmd chmod +x $INSTALL_PATH /when
146
147
if [[ $? -eq 0 ]]; then
You can’t perform that action at this time.
0 commit comments