Use binary operators

This commit is contained in:
Akash Manohar J 2014-11-30 14:16:07 +05:30
parent 281aaf705d
commit 879d8fa5f5
2 changed files with 2 additions and 2 deletions

View File

@ -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]}"

View File

@ -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