Skip to content

Commit 0f571c1

Browse files
committed
Small changes
1 parent 9cf5424 commit 0f571c1

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

scripts/create-cluster.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,11 @@ then
199199
echo "Error: You must enter something"
200200
exit 1
201201
fi
202-
if [ ! -f "${INSTALLER_SSHKEY}" ]
203-
then
204-
echo "Error: File ${INSTALLER_SSHKEY} must exist!"
205-
exit 1
206-
fi
202+
fi
203+
if [ ! -f "${INSTALLER_SSHKEY}" ]
204+
then
205+
echo "Error: File ${INSTALLER_SSHKEY} must exist!"
206+
exit 1
207207
fi
208208
SSH_KEY=$(cat ${INSTALLER_SSHKEY})
209209

@@ -323,6 +323,9 @@ do
323323
fi
324324
done
325325

326+
# Delete the previous output file from create-bastion
327+
[ -f /tmp/bastionIp ] && rm /tmp/bastionIp
328+
326329
mkdir ${CLUSTER_DIR}
327330

328331
PowerVC-Tool \

0 commit comments

Comments
 (0)