Mercurial > hgrepos > hgweb.cgi > s4
comparison s4-funcs.sh @ 700:f2971e549199
New team name regularization fixed
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Fri, 22 May 2020 07:47:53 +0900 |
parents | b33d6e7730ac |
children | 2c5ddb0b5f4c |
comparison
equal
deleted
inserted
replaced
699:b33d6e7730ac | 700:f2971e549199 |
---|---|
2790 elif [ x"$rm" = x"addteam" ]; then | 2790 elif [ x"$rm" = x"addteam" ]; then |
2791 team=`getpar team|sed "s/'/''/g"` # for single quotation | 2791 team=`getpar team|sed "s/'/''/g"` # for single quotation |
2792 newteam=`echo $team|tr -d ,` # ..and strip spaces of both ends | 2792 newteam=`echo $team|tr -d ,` # ..and strip spaces of both ends |
2793 if [ x"$team" != x"$newteam" ]; then | 2793 if [ x"$team" != x"$newteam" ]; then |
2794 echo "チーム名に使えない文字を除去しました" | html p | 2794 echo "チーム名に使えない文字を除去しました" | html p |
2795 team=newteam | 2795 team=$newteam |
2796 fi | 2796 fi |
2797 if [ -z "$team" -o x"$team" = x"なし" -o x"$team" = x"TEAM" ]; then | 2797 if [ -z "$team" -o x"$team" = x"なし" -o x"$team" = x"TEAM" ]; then |
2798 cat<<-EOF | html p | 2798 cat<<-EOF | html p |
2799 有効なチーム名を入力してください。 | 2799 有効なチーム名を入力してください。 |
2800 カンマだけ、「なし」という名前は使えません。 | 2800 カンマだけ、「なし」という名前は使えません。 |