mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 20:00:58 +01:00
initial commit
This commit is contained in:
14
tests/exportmasspubs.sh
Executable file
14
tests/exportmasspubs.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
outdir=$1
|
||||
pcp=$2
|
||||
vault=$3
|
||||
|
||||
if test -s "$vault"; then
|
||||
# exports public keys
|
||||
rm -f $outdir/0x*
|
||||
$pcp -V $vault -l | grep 0x | awk '{print $1}' | while read id; do
|
||||
$pcp -V $vault -p -i $id 2> /dev/null | egrep -v "^ " \
|
||||
| egrep -v '^$' > $outdir/$id
|
||||
done
|
||||
fi
|
||||
Reference in New Issue
Block a user