Browse Source

fix trailing whitespace in email

Pi 1 year ago
parent
commit
6f85169c9c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      cropswap-register-new.sh

+ 3 - 3
cropswap-register-new.sh

@@ -37,11 +37,11 @@ for group in cropswap cropswap-members; do
 
 	declare -A SIGNUP=()
 	mapfile -t -c 2 -C update_signup contacts < <(find ${form_dir} -type f -name "*.txt" -exec awk -F ":" '
-/Name:/ { print substr($2,2) OFS }
-/Email:/ { print substr($2,2) OFS }
+/Name:/ { print substr($2,2) }
+/Email:/ { print substr($2,2) }
 ' {} \;)
 
 	for email in "${!SIGNUP[@]}"; do
-		echo "${SCRIPTDIR}/cropswap-register.sh" "${group}@shandan.one" "${SIGNUP["$email"]}" "$email" NONE
+		"${SCRIPTDIR}/cropswap-register.sh" "${group}@shandan.one" "${SIGNUP["$email"]}" "$email" NONE
 	done
 done