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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user