mirror of
https://github.com/YunoHost/cd_build.git
synced 2024-09-03 20:06:24 +02:00
Merge branch 'master' into patch-4
This commit is contained in:
commit
ef45347a37
1 changed files with 2 additions and 8 deletions
|
@ -77,7 +77,8 @@ function sign
|
||||||
# Remove previous signature to prevent gpg to ask about overwriting
|
# Remove previous signature to prevent gpg to ask about overwriting
|
||||||
rm -f $NAME.sig
|
rm -f $NAME.sig
|
||||||
|
|
||||||
sudo gpg --output $NAME.sig --detach-sig $NAME
|
gpg --output $NAME.sig --detach-sig $NAME
|
||||||
|
|
||||||
sha256sum $NAME > $NAME.sum
|
sha256sum $NAME > $NAME.sum
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,15 +92,8 @@ function build_and_sign
|
||||||
sign $ARCH
|
sign $ARCH
|
||||||
}
|
}
|
||||||
|
|
||||||
function assert_not_root
|
|
||||||
{
|
|
||||||
[[ $EUID -ne 0 ]] || critical "You should not run this script as root !"
|
|
||||||
}
|
|
||||||
|
|
||||||
function main
|
function main
|
||||||
{
|
{
|
||||||
assert_not_root
|
|
||||||
|
|
||||||
if [ -z "$ARCH_CHOICE" ]
|
if [ -z "$ARCH_CHOICE" ]
|
||||||
then
|
then
|
||||||
info "No arch chosen, will build both i396 and amd64"
|
info "No arch chosen, will build both i396 and amd64"
|
||||||
|
|
Loading…
Add table
Reference in a new issue