Skip to content

Commit

Permalink
fix mac sed issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbtek committed Dec 7, 2015
1 parent 07b2c49 commit f43a3b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/util.bash
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ function trimString()
{
local -r string="${1}"

sed -e 's/^\s*//g' -e 's/\s*$//g' <<< "${string}"
sed 's,^[[:blank:]]*,,' <<< "${string}" | sed 's,[[:blank:]]*$,,'
}

function warn()
Expand Down

0 comments on commit f43a3b6

Please sign in to comment.