Skip to content

Commit

Permalink
Fix rpm signing
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalbe4 committed Jul 26, 2024
1 parent 394dac4 commit 7f27361
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion build/deb_rpm/v2-jf/build-scripts/rpm-sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ rpmInitSigning(){
eval "$gpg_agent_output"

# Set GPG_TTY if possible
local tty_value
if tty -s; then
export GPG_TTY=$(tty)
tty_value=$(tty)
export GPG_TTY="$tty_value"
else
export GPG_TTY="/dev/null"
fi
Expand Down
4 changes: 3 additions & 1 deletion build/deb_rpm/v2/build-scripts/rpm-sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ rpmInitSigning(){
eval "$gpg_agent_output"

# Set GPG_TTY if possible
local tty_value
if tty -s; then
export GPG_TTY=$(tty)
tty_value=$(tty)
export GPG_TTY="$tty_value"
else
export GPG_TTY="/dev/null"
fi
Expand Down

0 comments on commit 7f27361

Please sign in to comment.