mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
Use binary operators
This commit is contained in:
parent
281aaf705d
commit
879d8fa5f5
@ -20,7 +20,7 @@ install_command() {
|
||||
check_if_source_exists $source_path
|
||||
|
||||
IFS=':' read -a version_info <<< "$full_version"
|
||||
if [ "${version_info[0]}" -e "tag" ] || [ "${version_info[0]}" -e "commit" ]
|
||||
if [ "${version_info[0]}" = "tag" ] || [ "${version_info[0]}" = "commit" ]
|
||||
then
|
||||
local install_type="${version_info[0]}"
|
||||
local version="${version_info[1]}"
|
||||
|
@ -61,7 +61,7 @@ get_download_url() {
|
||||
local install_type=$1
|
||||
local version=$2
|
||||
|
||||
if [ "$install_type" -e "version" ]
|
||||
if [ "$install_type" = "version" ]
|
||||
then
|
||||
echo "http://www.erlang.org/download/otp_src_${version}.tar.gz"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user