Skip to content

Commit ee32ba7

Browse files
author
Matthew Fisher
committed
Merge pull request #1474 from deis/fixup-do-script
fix(contrib): digitalocean script arg parsing
2 parents 74857d2 + 1219340 commit ee32ba7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

contrib/digitalocean/provision-do-cluster.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -e
77

88
listcontains() {
99
for i in $1; do
10-
[[ $i = $2 ]] && echo $i && return 0
10+
[[ $i = $2 ]] && return 0
1111
done
1212
return 1
1313
}
@@ -33,7 +33,7 @@ if [ -z "$DEIS_NUM_INSTANCES" ]; then
3333
fi
3434

3535
regions_with_private_networking=(4 5 6 7)
36-
if ! listcontains "$regions_with_private_networking" "$2";
36+
if ! listcontains "$regions_with_private_networking" "$1";
3737
then
3838
echo_red "Invalid region. Please supply a region with private networking support."
3939
echo_red "Valid regions are:"

0 commit comments

Comments
 (0)