summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
15993ea)
Signed-off-by: Steven Baltakatei Sandoval <baltakatei@gmail.com>
#!/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
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";
# 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";
# 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" );