Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
651
Issues
651
List
Boards
Labels
Service Desk
Milestones
Merge Requests
192
Merge Requests
192
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
aports
Commits
26766bf9
Commit
26766bf9
authored
Dec 22, 2016
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts/mkimage: fix generation of checksums
we need remove the leading path to file
parent
752bd101
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
scripts/mkimage-yaml.sh
scripts/mkimage-yaml.sh
+1
-1
scripts/mkimage.sh
scripts/mkimage.sh
+1
-1
No files found.
scripts/mkimage-yaml.sh
View file @
26766bf9
...
...
@@ -66,7 +66,7 @@ EOF
# generate checksums if missing
for
hash
in
${
checksums
}
;
do
if
!
[
-f
"
$image
.
$hash
"
]
;
then
${
hash
}
sum
$image
>
$image
.
$hash
${
hash
}
sum
$image
|
sed
's: .*/: :'
>
$image
.
$hash
fi
echo
"
$hash
:
$(
cut
-d
' '
-f1
$image
.
$hash
)
"
done
...
...
scripts/mkimage.sh
View file @
26766bf9
...
...
@@ -177,7 +177,7 @@ build_profile() {
if
[
"
$_checksum
"
=
"yes"
]
;
then
for
_c
in
$all_checksums
;
do
${
_c
}
sum
"
$output_file
"
>
"
${
output_file
}
.
${
_c
}
"
echo
"
$(
${
_c
}
sum
"
$output_file
"
|
cut
-d
' '
-f1
)
${
output_filename
}
"
>
"
${
output_file
}
.
${
_c
}
"
done
fi
...
...
Write
Preview
Markdown
is supported
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