Merge branch 'fix-kitmaker' into 'main'

Include = when extracting manifest information

See merge request nvidia/container-toolkit/container-toolkit!327
This commit is contained in:
Evan Lezar 2023-03-07 14:44:27 +00:00
commit 9435343541

View File

@ -70,7 +70,7 @@ KITMAKER_SCRATCH="${KITMAKER_DIR}/.scratch"
# extract_info extracts the value of the specified variable from the manifest.txt file.
function extract_info() {
local variable=$1
local value=$(cat "${ARTIFACTS_DIR}/manifest.txt" | grep "#${variable}" | sed -e "s/#${variable}=//" | tr -d '\r')
local value=$(cat "${ARTIFACTS_DIR}/manifest.txt" | grep "#${variable}=" | sed -e "s/#${variable}=//" | tr -d '\r')
echo $value
}