diff --git a/dots/bin/importGnupgKeys.sh b/dots/bin/importGnupgKeys.sh index 3085c74..ac4e61c 100755 --- a/dots/bin/importGnupgKeys.sh +++ b/dots/bin/importGnupgKeys.sh @@ -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