mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-17 23:07:55 +00:00
scripts: Make collect script variable local
Added a missing `local` in `get_image_file()`. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
@@ -410,7 +410,7 @@ get_image_file()
|
||||
local cmd="@PROJECT_TYPE@-env"
|
||||
local cmdline="$runtime $cmd"
|
||||
|
||||
image=$(eval "$cmdline" 2>/dev/null |\
|
||||
local image=$(eval "$cmdline" 2>/dev/null |\
|
||||
grep -A 1 '^\[Image\]' |\
|
||||
egrep "\<Path\> =" |\
|
||||
awk '{print $3}' |\
|
||||
|
Reference in New Issue
Block a user