Showing
2 changed files
with
3 additions
and
4 deletions
@@ -45,11 +45,11 @@ function ssh-init-agent() { | @@ -45,11 +45,11 @@ function ssh-init-agent() { | ||
45 | local ECHO="/bin/echo" | 45 | local ECHO="/bin/echo" |
46 | local SSH_AGENT="/usr/bin/ssh-agent" | 46 | local SSH_AGENT="/usr/bin/ssh-agent" |
47 | 47 | ||
48 | - [[ -e "${SSH_AGENT_FILE}" ]] && eval `${CAT} "${SSH_AGENT_FILE}"` >/dev/null | 48 | + [[ -e "${SSH_AGENT_FILE}" ]] && eval $(${CAT} "${SSH_AGENT_FILE}") >/dev/null |
49 | 49 | ||
50 | if [[ "x" != x${SSH_AGENT_PID} ]] | 50 | if [[ "x" != x${SSH_AGENT_PID} ]] |
51 | then | 51 | then |
52 | - if [[ "ssh-agent" = "`${PS} -p ${SSH_AGENT_PID} -o comm=`" ]] | 52 | + if [[ "ssh-agent" = "$(${PS} -p ${SSH_AGENT_PID} -o comm=)" ]] |
53 | then | 53 | then |
54 | return | 54 | return |
55 | fi | 55 | fi |
@@ -59,7 +59,7 @@ function ssh-init-agent() { | @@ -59,7 +59,7 @@ function ssh-init-agent() { | ||
59 | ${SSH_AGENT} >"${SSH_AGENT_FILE}" | 59 | ${SSH_AGENT} >"${SSH_AGENT_FILE}" |
60 | if [[ 0 -eq $? ]] | 60 | if [[ 0 -eq $? ]] |
61 | then | 61 | then |
62 | - eval `${CAT} "${SSH_AGENT_FILE}"` >/dev/null | 62 | + eval $(${CAT} "${SSH_AGENT_FILE}") >/dev/null |
63 | ${ECHO} "OK" | 63 | ${ECHO} "OK" |
64 | ssh-add | 64 | ssh-add |
65 | else | 65 | else |
@@ -29,7 +29,6 @@ function background() { | @@ -29,7 +29,6 @@ function background() { | ||
29 | local TEMPFILE="/bin/tempfile" | 29 | local TEMPFILE="/bin/tempfile" |
30 | local IDENTIFY="/usr/bin/identify" | 30 | local IDENTIFY="/usr/bin/identify" |
31 | local CONVERT="/usr/bin/convert" | 31 | local CONVERT="/usr/bin/convert" |
32 | - local SETROOT="/usr/bin/feh" | ||
33 | local ECHO="/bin/echo" | 32 | local ECHO="/bin/echo" |
34 | local EXPR="/usr/bin/expr" | 33 | local EXPR="/usr/bin/expr" |
35 | local WC="/usr/bin/wc" | 34 | local WC="/usr/bin/wc" |
Please
register
or
login
to post a comment