fix: assure compatibility with bash 4.0 and 4.1

closes #2
pull/3/head
antoine.leveugle 2016-05-25 21:45:28 +02:00
parent 73c4e37107
commit fe3697eaaa
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ getJSONFieldString()
JSON="$1"
FIELD="$2"
RESULT=$(echo $JSON | $CURRENT_PATH/$LIBS/JSON.sh | grep "\[\"$FIELD\"\]" | sed -r "s/\[\"$FIELD\"\]\s+(.*)/\1/")
echo ${RESULT:1:-1}
echo ${RESULT:1:${#RESULT}-2}
}
main()