diff --git a/sesame2mail b/sesame2mail index 58c88ce..23a3d73 100755 --- a/sesame2mail +++ b/sesame2mail @@ -17,7 +17,7 @@ if [ -f "${1}" ]; then touch "${MAIL_LIST}" index=0 - while read uid; do + while read -r uid; do 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)