Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
abuild
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
13
Issues
13
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
abuild
Commits
ad611237
Commit
ad611237
authored
Jul 05, 2013
by
Dubiousjim
Committed by
Natanael Copa
Jul 09, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abuild-sign: wrap cd in a subshell, use set -e
parent
3eac2775
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
abuild-sign.in
abuild-sign.in
+5
-2
No files found.
abuild-sign.in
View file @
ad611237
...
...
@@ -25,9 +25,11 @@ do_sign() {
i
=
$(
readlink
-f
$f
)
[
-d
"
$i
"
]
&&
i
=
"
$i
/APKINDEX.tar.gz"
repo
=
"
${
i
%/*
}
"
cd
"
$repo
"
||
die
"Failed to sign
$i
"
(
set
-e
cd
"
$repo
"
sig
=
".SIGN.RSA.
$keyname
"
openssl dgst
-sha1
-sign
"
$privkey
"
-out
"
$sig
"
"
$i
"
||
die
"Failed to sign
$i
"
openssl dgst
-sha1
-sign
"
$privkey
"
-out
"
$sig
"
"
$i
"
tmptargz
=
$(
mktemp
)
tar
-c
"
$sig
"
| abuild-tar
--cut
|
gzip
-9
>
"
$tmptargz
"
tmpsigned
=
$(
mktemp
)
...
...
@@ -38,6 +40,7 @@ do_sign() {
if
[
-z
"
$quiet
"
]
;
then
echo
"Signed
$i
"
fi
)
||
die
"Failed to sign
$i
"
done
}
...
...
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