Open krull opened 2 years ago
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.sh
file:
for i in ${4//\n/g}; do
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
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: https://github.com/tofuSCHNITZEL/zmbackup/commit/d5028344feb83342d73e5977dfc138c404a913cc
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 ?
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 ?
you can just clone and use my fork: https://github.com/tofuSCHNITZEL/zmbackup
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