mirror of
https://github.com/lucascbeyeler/zmbackup.git
synced 2026-04-24 22:55:56 +03:00
[GH-ISSUE #168] Bash For loop in ListAction.sh breaks -d domain full backup of zmbackup with domains that have the letter 's' on them #135
Labels
No labels
Bug Report
Enhancement
Enhancement
Feature Idea
Feature Idea
Not Implemented
Question
Question
Task
Wontfix
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/zmbackup#135
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @krull on GitHub (Oct 8, 2021).
Original GitHub issue: https://github.com/lucascbeyeler/zmbackup/issues/168
ISSUE TYPE
ENVIRONMENT VERSION
SUMMARY
Bash For loop in ListAction.sh breaks -d domain full backup of zmbackup with domains that have the letter 's' on them
STEPS TO REPRODUCE
with
#!/bin/bash -x, the result above will have an output:ACTUAL RESULTS
@krull commented on GitHub (Oct 8, 2021):
Hello,
This bug report was reproduced with the following; I have several domains that include the letter 's' and ones without.
The ones without successfully backup, however the ones with 's' did not.
I remedied the issue by changing the following in
ListAction.shfile:Not certain if it will break other logics on your script, but it passed correctly the domain with 's' to the ldapsearch command.
hope this helps.
-krull
@tofuSCHNITZEL commented on GitHub (Aug 30, 2022):
it also breaks if there is an "n" in the email adress because it gets substituted with g. "\s" and "\n" does not not work with bash substitution.
you can check out the proper fix here:
github.com/tofuSCHNITZEL/zmbackup@d5028344fe@milauria commented on GitHub (Aug 28, 2024):
The version 1.2 still present this issue and these changes resolve the issue.
Can somebody release this changes into a new release 1.3 ?
@tofuSCHNITZEL commented on GitHub (Aug 28, 2024):
you can just clone and use my fork:
https://github.com/tofuSCHNITZEL/zmbackup