Skip to content

Commit

Permalink
fix get pid (#2117)
Browse files Browse the repository at this point in the history
Co-authored-by: dutor <440396+dutor@users.noreply.github.com>
  • Loading branch information
laura-ding and dutor committed May 18, 2020
1 parent 46f7bb9 commit 7a0152b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/utils.sh
Expand Up @@ -98,7 +98,7 @@ function wait_for_exit {
# To read a config item's value from the config file
# args: <config file> <config item name>
function get_item_from_config {
sed -n -e "s/--${2}=\(.*\)$/\1/p" ${1} 2>/dev/null
sed -n -e "s/^--${2}=\(.*\)$/\1/p" ${1} 2>/dev/null | sed -n "1p"
}


Expand Down

0 comments on commit 7a0152b

Please sign in to comment.