projects
/
BK-2020-03.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat(user/bkotslu):v0.0.1: Add OTS lookup script
[BK-2020-03.git]
/
user
/
bk-export-min-pubkeys.sh
diff --git
a/user/bk-export-min-pubkeys.sh
b/user/bk-export-min-pubkeys.sh
old mode 100644
(file)
new mode 100755
(executable)
index
96b267d
..
a18ad7e
--- a/
user/bk-export-min-pubkeys.sh
+++ b/
user/bk-export-min-pubkeys.sh
@@
-1,7
+1,7
@@
#!/usr/bin/env bash
# Desc: Export each pubkey to a separate file
# Usage: bk-export-min-pubkeys.sh
#!/usr/bin/env bash
# Desc: Export each pubkey to a separate file
# Usage: bk-export-min-pubkeys.sh
-# Version: 0.0.
1
+# Version: 0.0.
2
time_now="$(date +%Y%m%dT%H%M%S%z)";
dir_out="./$time_now..pubkeys";
time_now="$(date +%Y%m%dT%H%M%S%z)";
dir_out="./$time_now..pubkeys";
@@
-27,7
+27,7
@@
main() {
# Create output dir
path_out="$(readlink -f "$dir_out")";
# Create output dir
path_out="$(readlink -f "$dir_out")";
- yell "DEBUG:path_out:$path_out";
+
#
yell "DEBUG:path_out:$path_out";
if [[ ! -d "$path_out" ]]; then
mkdir -p "$path_out";
yell "NOTICE:Creating output directory:$path_out";
if [[ ! -d "$path_out" ]]; then
mkdir -p "$path_out";
yell "NOTICE:Creating output directory:$path_out";
@@
-39,7
+39,7
@@
main() {
# Export file
pubkey_ascii="$(try gpg_get_pubkey "$longid")";
# Export file
pubkey_ascii="$(try gpg_get_pubkey "$longid")";
- yell "DEBUG:pubkey_ascii:$pubkey_ascii";
+
#
yell "DEBUG:pubkey_ascii:$pubkey_ascii";
echo "$pubkey_ascii" > "$path_out"/"$longid".asc
done < <( echo "$list_longid" );
echo "$pubkey_ascii" > "$path_out"/"$longid".asc
done < <( echo "$list_longid" );