Skip to content

Commit

Permalink
bugfix: check correct pairs of cc/bcc arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
kgizdov committed May 13, 2020
1 parent 976b37b commit 124fa5e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions send_email
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
# environments
set -euo pipefail
IFS=$'\n\t'
__MY_VERSION__="0.3"
__SNDEM_VERSION_MAJOR__="0"
__SNDEM_VERSION_MINOR__="3"
__SNDEM_VERSION_PATCH__="1"
__SNDEM_VERSION__="${__SNDEM_VERSION_MAJOR__}.${__SNDEM_VERSION_MINOR__}.${__SNDEM_VERSION_PATCH__}"
__DEBUG_MODE__=0
__DRYRUN_MODE__=0
__VERBOSE_MODE__=0
Expand Down Expand Up @@ -331,7 +334,7 @@ Content-Disposition: attachment; filename=\"${att}\"\n"
}

function version {
echo "send_email.sh (or SNDEM for short) version ${__MY_VERSION__}"
echo "send_email.sh (or SNDEM for short) version ${__SNDEM_VERSION__}"
echo ""
echo "Copyright (c) 2020 Konstantin Gizdov"
}
Expand Down Expand Up @@ -551,8 +554,8 @@ check_name_from
check_addr_to
check_subj
check_size_arrs "${name_to_arr}" "${addr_to_arr}"
check_size_arrs "${name_cc_arr}" "${addr_bcc_arr}"
check_size_arrs "${name_cc_arr}" "${addr_bcc_arr}"
check_size_arrs "${name_cc_arr}" "${addr_cc_arr}"
check_size_arrs "${name_bcc_arr}" "${addr_bcc_arr}"
check_env_commit_msg

# create needed variables
Expand Down

0 comments on commit 124fa5e

Please sign in to comment.