Skip to content

Commit

Permalink
Both test on one line
Browse files Browse the repository at this point in the history
  • Loading branch information
elg committed Nov 4, 2019
1 parent 7372ec3 commit 286a0fb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions passhport/passhport-connect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,9 @@ else
wget --ca-certificate=${CERT} -qO - ${URL}connection/ssh/endsession/${PID} &> /dev/null
fi

# If it's a direct connection, we don't connect again
if [ "${SSH_ORIGINAL_COMMAND}" != "" ]
then
KEEPCONNECT=0
fi

# Launch PaSSHport with the same user after the connection
if [ "${KEEPCONNECT}" -eq "1" ]
# If it's a direct connection, we don't connect again
if [ "${KEEPCONNECT}" -eq "1" ] && [ -z "${SSH_ORIGINAL_COMMAND}" ]
then
${PYTHONBIN} ${PASSHPORTBIN} ${USERNAME}
fi

0 comments on commit 286a0fb

Please sign in to comment.