mirror of
https://github.com/YunoHost/cd_build.git
synced 2024-09-03 20:06:24 +02:00
Merge branch 'master' into building-on-stretch
This commit is contained in:
commit
de7196d639
1 changed files with 3 additions and 9 deletions
|
@ -74,7 +74,8 @@ function sign
|
|||
|
||||
info "Signing image $NAME ..."
|
||||
|
||||
sudo gpg --output $NAME.sig --detach-sig $NAME
|
||||
gpg --output $NAME.sig --detach-sig $NAME
|
||||
|
||||
sha256sum $NAME > $NAME.sum
|
||||
}
|
||||
|
||||
|
@ -88,15 +89,8 @@ function build_and_sign
|
|||
sign $ARCH
|
||||
}
|
||||
|
||||
function assert_not_root
|
||||
{
|
||||
[[ $EUID -ne 0 ]] || critical "You should not run this script as root !"
|
||||
}
|
||||
|
||||
function main
|
||||
{
|
||||
assert_not_root
|
||||
|
||||
if [ -z "$ARCH_CHOICE" ]
|
||||
then
|
||||
info "No arch chosen, will build both i396 and amd64"
|
||||
|
|
Loading…
Add table
Reference in a new issue