X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fmetadata%2Futils.sh;h=a355936c6d2265f69faf869b82bd658a3d534743;hb=b7a2f86d3d9b2554f80dcf684d9bd90bbf7a3213;hp=89fa77270424401061346852151960ca825cbd9f;hpb=01654d6926771be58b4350463b0f12ea2e6aa34c;p=lttng-tools.git diff --git a/tests/regression/tools/metadata/utils.sh b/tests/regression/tools/metadata/utils.sh index 89fa77270..a355936c6 100644 --- a/tests/regression/tools/metadata/utils.sh +++ b/tests/regression/tools/metadata/utils.sh @@ -1,19 +1,8 @@ #!/bin/bash # -# Copyright (C) - 2019 Jonathan Rajotte-Julien +# Copyright (C) 2019 Jonathan Rajotte # -# This library is free software; you can redistribute it and/or modify it under -# the terms of the GNU Lesser General Public License as published by the Free -# Software Foundation; version 2.1 of the License. -# -# This library is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more -# details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# SPDX-License-Identifier: LGPL-2.1-only function get_env_value () { @@ -22,7 +11,7 @@ function get_env_value () local result local ret - result=$(grep "$key" < "$env_file") + result=$(grep "$key =" < "$env_file") ret=$? if [ $ret -eq 1 ]; then echo "invalid_value_extraction"