Skip to content

Commit

Permalink
fix: Remove trailing new line in ERLANG_VERSION env var
Browse files Browse the repository at this point in the history
  • Loading branch information
DamjanBecirovic committed Dec 23, 2024
1 parent 25dcfd2 commit b31a30e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion install-self-hosted-toolbox
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fi


echo "Installing the when CLI"
ERLANG_VERSION=$(erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell | tr -d '"')
ERLANG_VERSION=$(erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell | tr -d '"\r')
install_cmd mv ~/.toolbox/when_otp_$ERLANG_VERSION $INSTALL_PATH/when
install_cmd chmod +x $INSTALL_PATH/when
if [[ $? -eq 0 ]];then
Expand Down
2 changes: 1 addition & 1 deletion install-toolbox
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ if [[ `uname` != "Darwin" ]]; then
fi

echo "Installing the when CLI"
ERLANG_VERSION=$(erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell | tr -d '"')
ERLANG_VERSION=$(erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell | tr -d '"\r')
install_cmd mv ~/.toolbox/when_otp_$ERLANG_VERSION $INSTALL_PATH/when
install_cmd chmod +x $INSTALL_PATH/when
if [[ $? -eq 0 ]];then
Expand Down

0 comments on commit b31a30e

Please sign in to comment.