Clean code
This commit is contained in:
parent
8448282afa
commit
e978d05450
@ -9,11 +9,13 @@ function showHelp() {
|
||||
echo " start profile|port target"
|
||||
echo " stop profile|port target"
|
||||
#echo " stop profile|port target|tmpFile"
|
||||
#echo " stop port"
|
||||
echo "proxy:"
|
||||
echo " profile Name of the profile (~/.config/ssh-proxy/*)"
|
||||
echo " port Proxy local port"
|
||||
echo " target Proxy target [user@]server[:port]"
|
||||
#echo " tmpFile Proxy instance pid file (/tmp/ssh-proxy/*)"
|
||||
#echo " port 1024-65535"
|
||||
}
|
||||
|
||||
if [ "${1}" == "" ]; then
|
||||
@ -83,17 +85,8 @@ if [[ "${PROXY_SERVER}" == *:* ]]; then
|
||||
PROXY_SERVER="${PROXY_SERVER%:*}"
|
||||
fi
|
||||
|
||||
# Debug Point
|
||||
#echo "PROXY_USER: ${PROXY_USER}"
|
||||
##echo "PROXY_PASSWORD: ${PROXY_PASSWORD}"
|
||||
#echo "PROXY_SERVER: ${PROXY_SERVER}"
|
||||
#echo "PORT: ${PROXY_SERVER_PORT}"
|
||||
|
||||
TMP_FILE=/tmp/ssh-proxy-$(whoami)/proxy-${LOCAL_PORT}-${PROXY_USER}@${PROXY_SERVER}
|
||||
|
||||
# Debug Point
|
||||
#echo "${TMP_FILE}"
|
||||
|
||||
if [ ! -d /tmp/ssh-proxy-"${USER}" ]; then
|
||||
mkdir /tmp/ssh-proxy-"${USER}"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user