Add "read -r"

This commit is contained in:
Jeremy Gardais 2017-02-15 14:38:32 +01:00
parent 85ba2a65dd
commit e89ec993cb
1 changed files with 1 additions and 1 deletions

View File

@ -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)