1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2025-06-13 13:03:58 +00:00

Don't encrypt nothingness

This commit is contained in:
Ross Smith II 2018-03-07 15:48:15 -08:00
parent 09a018ea5a
commit f57a01b0d4

5
yadm
View File

@ -418,6 +418,11 @@ function encrypt() {
require_encrypt
parse_encrypt
if [ "${#ENCRYPT_INCLUDE_FILES[@]}" -eq 0 ]; then
error_out "No files were found to encrypt"
return
fi
cd_work "Encryption" || return
#; Build gpg options for gpg