Unverified Commit 93a33f6c authored by boklm's avatar boklm
Browse files

Bug 40476: Use gpg with --batch --no-tty in linux-signer-gpg-sign

Use --batch --no-tty to avoid an error when running the script without
a tty:

  gpg: cannot open tty `/dev/tty`: No such device or address
parent 01adb390
......@@ -10,7 +10,8 @@ do
tmpfile=$(mktemp)
chmod 644 "$tmpfile"
wget -q -O "$tmpfile" "https://people.torproject.org/~$builder/builds/$tbb_version-build$tbb_version_build/$file" || \
wget -q -O "$tmpfile" "https://people.torproject.org/~$builder/builds/tor-browser/release/unsigned/$tbb_version-build$tbb_version_build/$file" && \
wget -q -O "$tmpfile" "https://people.torproject.org/~$builder/builds/tor-browser/$tbb_version-build$tbb_version_build/$file" || \
wget -q -O "$tmpfile" "https://tb-build-03.torproject.org/~$builder/builds/tor-browser/$tbb_version_type/unsigned/$tbb_version-build$tbb_version_build/$file" && \
mv "$tmpfile" "$signed_version_dir/$file-$builder" && echo "Added $file-$builder"
done
done
......
......@@ -15,5 +15,5 @@ do
rm -f "$i.asc"
fi
echo "Signing $i"
echo "$GPG_PASS" | gpg -absu 0xe53d989a9e2d47bf! --passphrase-fd 0 $i
echo "$GPG_PASS" | gpg -absu 0xe53d989a9e2d47bf! --batch --no-tty --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