Skip to content

Commit

Permalink
Fixing signature of deb packages (#609)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSeccubus committed Nov 15, 2017
1 parent 4fd154d commit 6f58158
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions deb/makedeb.sh
Expand Up @@ -34,12 +34,14 @@ BRANCH=$(git branch | grep '*'|awk '{print $2}')
[ ! -d build ] && mkdir build
[ -d $DIR ] && rm -rf $DIR

if [[ "$BRANCH" == "master" ]] && [[ ! -z $SECCUBUS_GPG_KEY ]]; then
echo Setting up gpg
set +x
echo $SECCUBUS_GPG_KEY | sed 's/\\n/\n/g' > /tmp/gpg.key
gpg --import --batch --yes /tmp/gpg.key
rm /tmp/gpg.key
if [[ "$BRANCH" == "master" ]] || [[ "$BRANCH" == "deb-building" ]]; then
if [[ ! -z $SECCUBUS_GPG_KEY ]]; then
echo Setting up gpg
set +x
echo $SECCUBUS_GPG_KEY | sed 's/\\n/\n/g' > /tmp/gpg.key
gpg --import --batch --yes /tmp/gpg.key
rm /tmp/gpg.key
fi
fi


Expand Down

0 comments on commit 6f58158

Please sign in to comment.