fixing the gpg key deployer (wip)
This commit is contained in:
@@ -27,15 +27,13 @@ ls -al ${src_dir}
|
|||||||
|
|
||||||
# get the first file .zip.gpg in the directory
|
# get the first file .zip.gpg in the directory
|
||||||
the_file=$(find . -name "*.zip.gpg" -print | head -n 1)
|
the_file=$(find . -name "*.zip.gpg" -print | head -n 1)
|
||||||
echo ${the_file}
|
echo "file located: '${the_file}'"
|
||||||
|
|
||||||
exit 1
|
|
||||||
|
|
||||||
# copy .zip.gpg to tmp dir
|
# copy .zip.gpg to tmp dir
|
||||||
cp ${src_dir}/*.zip.gpg ${tmp_dir}
|
#cp ${the_file} ${tmp_dir}
|
||||||
|
|
||||||
# decrypt .gpg
|
# decrypt .gpg
|
||||||
gpg --decrypt --output ${tmp_dir}/gpgKeys.zip ${tmp_dir}/*.zip.gpg
|
gpg --decrypt --output ${tmp_dir}/gpgKeys.zip ${the_file}
|
||||||
|
|
||||||
# extract .zip
|
# extract .zip
|
||||||
unzip -j -d ${tmp_dir} ${tmp_dir}/gpgKeys.zip
|
unzip -j -d ${tmp_dir} ${tmp_dir}/gpgKeys.zip
|
||||||
|
|||||||
Reference in New Issue
Block a user