Fix: mod_ssh little bugs and debug output

This commit is contained in:
mrjk 2018-03-01 08:15:42 -05:00
parent 6b55890034
commit e67ebebcb0

View File

@ -165,7 +165,7 @@ idm_ssh__agent_start() {
# Ensure env file is not present # Ensure env file is not present
[ ! -f "${run_dir}/env" ] || \ [ ! -f "${run_dir}/env" ] || \
rm -f "${run_dir}/env" rm -f "${run_dir}/env"
set -x #set -x
# Start the agent # Start the agent
if ssh-agent -a "$run_dir/socket" -t $life -s | grep ^SSH_ > "$run_dir/env"; then if ssh-agent -a "$run_dir/socket" -t $life -s | grep ^SSH_ > "$run_dir/env"; then
@ -199,7 +199,7 @@ idm_ssh__agent_clean ()
#set -x #set -x
# Remove process # Remove process
if [ "$pid" != '0' -a "$pid" -gt 0 ]; then if [ ! -z "$pid" -a "$pid" -gt 0 ]; then
kill $pid kill $pid
fi fi
@ -263,7 +263,7 @@ idm_ssh_add ()
# Useless at this stage i guess # Useless at this stage i guess
idm_ssh__agent_check () idm_ssh__agent_check ()
{ {
set -x #set -x
local id=$1 local id=$1
local socket=${2:-_} local socket=${2:-_}
local pid=${3:-0} local pid=${3:-0}