Unverified Commit 209de9b1 authored by boklm's avatar boklm
Browse files

Bug 40414: Improve linux-signer-gpg-sign

- Automatically change to ~/$tbb_version directory
- allow setting password with an environment variable (useful for
  #40476)
parent 05455d33
#!/bin/bash
set -e
read -sp "Enter passphrase: " pass
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
source "$script_dir/functions"
cd ~/"$tbb_version"
test -n "$GPG_PASS" || read -sp "Enter gpg passphrase: " GPG_PASS
for i in `find . -name "*.dmg" -o -name "*.exe" -o -name "*.tar.xz" -o -name "*.txt" -o -name "*.zip" -o -name "*.tar.gz" -o -name "*.apk" | sort`
do
if test -f "$i.asc"
......@@ -9,6 +15,5 @@ do
rm -f "$i.asc"
fi
echo "Signing $i"
echo "$pass" | gpg -absu 0xe53d989a9e2d47bf! --passphrase-fd 0 $i
test $? || echo "Signing $i failed"
echo "$GPG_PASS" | gpg -absu 0xe53d989a9e2d47bf! --passphrase-fd 0 $i
done
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment