Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Philip Freeman
image-builder
Commits
7edfb7ce
Commit
7edfb7ce
authored
Nov 26, 2019
by
Guido Gunther
Browse files
build-image: Mark some function local vars local
parent
bcc12638
Changes
1
Hide whitespace changes
Inline
Side-by-side
build-image
View file @
7edfb7ce
...
...
@@ -92,6 +92,8 @@ setup_loop() {
write_meta
()
{
local
out
=
"
$1
"
local
image
=
"
$2
"
local
image_sha256sum
local
image_size
image_sha256sum
=
$(
sha256sum
"
${
image
}
"
|
sed
's/\([a-f0-9]\+\) .*/\1/'
)
image_size
=
$(
stat
--format
=
'%s'
"
${
image
}
"
)
...
...
@@ -108,6 +110,8 @@ EOF
append_boot_image_meta
()
{
local
out
=
"
$1
"
local
image
=
"
$2
"
local
image_sha256sum
local
image_size
image_sha256sum
=
$(
sha256sum
"
${
image
}
"
|
sed
's/\([a-f0-9]\+\) .*/\1/'
)
image_size
=
$(
stat
--format
=
'%s'
"
${
image
}
"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment