new and improved
This commit is contained in:
@@ -29,9 +29,6 @@ ls -al ${src_dir}
|
||||
the_file=$(find . -name "*.zip.gpg" -print | head -n 1)
|
||||
echo "file located: '${the_file}'"
|
||||
|
||||
# copy .zip.gpg to tmp dir
|
||||
#cp ${the_file} ${tmp_dir}
|
||||
|
||||
# decrypt .gpg
|
||||
gpg --decrypt --output ${tmp_dir}/gpgKeys.zip ${the_file}
|
||||
|
||||
@@ -41,7 +38,7 @@ unzip -j -d ${tmp_dir} ${tmp_dir}/gpgKeys.zip
|
||||
# delete decrypted zip file
|
||||
srm -v ${tmp_dir}/gpgKeys.zip
|
||||
|
||||
# import keys
|
||||
# import keys, and delete the source files afterwards
|
||||
for file in ${tmp_dir}/*.asc; do
|
||||
echo "processing '${file}'"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user