Add "read -r"
This commit is contained in:
parent
85ba2a65dd
commit
e89ec993cb
|
@ -17,7 +17,7 @@ if [ -f "${1}" ]; then
|
||||||
touch "${MAIL_LIST}"
|
touch "${MAIL_LIST}"
|
||||||
|
|
||||||
index=0
|
index=0
|
||||||
while read uid; do
|
while read -r uid; do
|
||||||
index=$((index+1))
|
index=$((index+1))
|
||||||
mail=$(ldapsearch -ZZ -H ldap://ldap.univ-rennes1.fr -LLL '(uid='"${uid}"')' -b "dc=univ-rennes1,dc=fr" -x mail | grep "^mail" | cut -d" " -f2)
|
mail=$(ldapsearch -ZZ -H ldap://ldap.univ-rennes1.fr -LLL '(uid='"${uid}"')' -b "dc=univ-rennes1,dc=fr" -x mail | grep "^mail" | cut -d" " -f2)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue