Skip to content

Commit 649b38f

Browse files
committed
2 parents c75620f + 8c4e87b commit 649b38f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

automysqlbackup

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ mail_cleanup () {
177177
'bunzip2 <mail_attachment_2011-08-13_13h15m.tar.bz2 | pax -rv' to extract the content."
178178
for ((j=0;j<"${#files[@]}";j++)); do
179179
if [[ "x$CONFIG_mail_use_uuencoded_attachments" = "xyes" ]]; then
180-
if (( $j = 0 )); then
180+
if (( $j == 0 )); then
181181
cat "$log_file" > "$temp"
182182
uuencode "$j" "$j" >> "$temp"
183183
else
@@ -352,7 +352,7 @@ files_postprocessing () {
352352
if (( $CONFIG_dryrun )); then
353353
printf 'dry-running: cp -al %s.enc %s/latest/\n' "${1}" "${CONFIG_backup_dir}"
354354
else
355-
cp -al "${1}${suffix}.enc" "${CONFIG_backup_dir}"/latest/
355+
cp -al "${1}.enc" "${CONFIG_backup_dir}"/latest/
356356
fi
357357
else
358358
if (( $CONFIG_dryrun )); then

0 commit comments

Comments
 (0)