Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
scripts: Make collect script variable local
Browse files Browse the repository at this point in the history
Added a missing `local` in `get_image_file()`.

Signed-off-by: James O. D. Hunt <[email protected]>
  • Loading branch information
jodh-intel committed Apr 20, 2018
1 parent fbd2808 commit 4281bc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/kata-collect-data.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -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}' |\
Expand Down

0 comments on commit 4281bc3

Please sign in to comment.