fix issue for openBSD

This commit is contained in:
neil 2016-04-24 13:51:42 +08:00
parent e4739512e6
commit 230234e701

View File

@ -1188,7 +1188,7 @@ issue() {
return 1
fi
entry="$(printf $response | egrep -o '\{[^{]*"type":"'$vtype'"[^}]*')"
entry="$(printf "$response" | egrep -o '\{[^{]*"type":"'$vtype'"[^}]*')"
_debug entry "$entry"
token="$(printf "$entry" | egrep -o '"token":"[^"]*' | cut -d : -f 2 | tr -d '"')"