Commit c36e36bc23038c26d362999190d0fb6f041ef1f2

Authored by Georg Hopp
1 parent 14311384

Some more sanitizing...

... ... @@ -45,11 +45,11 @@ function ssh-init-agent() {
45 45 local ECHO="/bin/echo"
46 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 50 if [[ "x" != x${SSH_AGENT_PID} ]]
51 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 53 then
54 54 return
55 55 fi
... ... @@ -59,7 +59,7 @@ function ssh-init-agent() {
59 59 ${SSH_AGENT} >"${SSH_AGENT_FILE}"
60 60 if [[ 0 -eq $? ]]
61 61 then
62   - eval `${CAT} "${SSH_AGENT_FILE}"` >/dev/null
  62 + eval $(${CAT} "${SSH_AGENT_FILE}") >/dev/null
63 63 ${ECHO} "OK"
64 64 ssh-add
65 65 else
... ...
... ... @@ -29,7 +29,6 @@ function background() {
29 29 local TEMPFILE="/bin/tempfile"
30 30 local IDENTIFY="/usr/bin/identify"
31 31 local CONVERT="/usr/bin/convert"
32   - local SETROOT="/usr/bin/feh"
33 32 local ECHO="/bin/echo"
34 33 local EXPR="/usr/bin/expr"
35 34 local WC="/usr/bin/wc"
... ...
Please register or login to post a comment