Skip to content

Commit

Permalink
Merge pull request #2225 from appveyor/fix_enable_ssh
Browse files Browse the repository at this point in the history
Minor issues in enable-ssh.sh
  • Loading branch information
FeodorFitsner authored Mar 30, 2018
2 parents fef23c6 + 252e3ce commit 5d3dddc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/enable-ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [[ -z "${APPVEYOR_SSH_KEY}" ]]; then
exit 1
fi

if ! ssh-keygen -E md5 -lf /dev/stdin <<< "${APPVEYOR_SSH_KEY}"; then
if ! ssh-keygen -E md5 -lf /dev/stdin <<< "${APPVEYOR_SSH_KEY}" >/dev/null; then
echo "APPVEYOR_SSH_KEY contain invalid key!"
exit 2
fi
Expand Down Expand Up @@ -59,6 +59,7 @@ fi
if [[ -n "${APPVEYOR_SSH_BLOCK}" ]] && ${APPVEYOR_SSH_BLOCK}; then
# create $HOME/build.lock file if we need to block build process.
touch "${LOCK_FILE}"
echo "Before leaving SSH session run 'rm ~/build.lock' command to continue the build."
# wait until $HOME/build.lock deleted by user.
while [ -f "${LOCK_FILE}" ]; do
sleep 1
Expand Down

0 comments on commit 5d3dddc

Please sign in to comment.