Changed Service Principal Creation sequence to comply with newer CLI reqs

This commit is contained in:
Eugene Chuvyrov 2016-11-08 00:05:20 -08:00
parent eb75dbb693
commit 3ccbb6ca91
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ createServicePrincipal() {
# prior version accepted appId as the only parameter without a switch
newer_syntax = false
IFS='.' read -ra azureversionsemver <<< "$azureversion"
if [[ ${azureversionsemver[0]} -ge 0 && ${azureversionsemver[1]} -ge 10 && ${azureversionsemver[2]} -ge 2]]; then
if [ ${azureversionsemver[0]} -ge 0 ] && [ ${azureversionsemver[1]} -ge 10 ] && [ ${azureversionsemver[2]} -ge 2 ]; then
newer_syntax = true
fi