changed printf to use %s and changed newlines in the command string to semi colons

This commit is contained in:
Brandon Casey
2014-09-08 11:07:11 -04:00
parent 59a69b883f
commit f46506d00e

View File

@@ -99,7 +99,7 @@ stub_and_eval() {
fi
# Create the stub.
eval "$(printf "${cmd}() {\n __stub_call \"${cmd}\" \$@\n $2\n}")"
eval "$( printf "%s" "${cmd}() { __stub_call \"${cmd}\" \$@; $2;}")"
}