fixing the gpg key deployer (wip)

This commit is contained in:
committer@tuxwarrior
2026-03-18 09:03:51 -05:00
parent 1f545f0948
commit 424249f6a7

View File

@@ -27,15 +27,13 @@ ls -al ${src_dir}
# get the first file .zip.gpg in the directory
the_file=$(find . -name "*.zip.gpg" -print | head -n 1)
echo ${the_file}
exit 1
echo "file located: '${the_file}'"
# copy .zip.gpg to tmp dir
cp ${src_dir}/*.zip.gpg ${tmp_dir}
#cp ${the_file} ${tmp_dir}
# decrypt .gpg
gpg --decrypt --output ${tmp_dir}/gpgKeys.zip ${tmp_dir}/*.zip.gpg
gpg --decrypt --output ${tmp_dir}/gpgKeys.zip ${the_file}
# extract .zip
unzip -j -d ${tmp_dir} ${tmp_dir}/gpgKeys.zip