X-Git-Url: http://git.plutz.net/?p=confetti;a=blobdiff_plain;f=cards%2Fupdate_card.sh;fp=cards%2Fupdate_card.sh;h=d57f5030a2431c564891d716c7f7a8ff5d769755;hp=2b87632aea3208def628e80226996b32e1eb171b;hb=809dd93745e557690152ed17d0b17f0582cf94dd;hpb=7658855512f84528af734a2a90f48cfed8d48d5c diff --git a/cards/update_card.sh b/cards/update_card.sh index 2b87632..d57f503 100755 --- a/cards/update_card.sh +++ b/cards/update_card.sh @@ -35,7 +35,7 @@ attfile="$_DATA/mappings/attendance" action="$(POST action)" newfield="$(POST newfield |grep -m 1 -xE '[A-Z][A-Z0-9-]*')" -if printf '%s\n' "$action" |grep -qxE 'addfield [A-Z][A-Z0-9]*'; then +if printf '%s\n' "$action" |grep -qxE 'addfield [A-Z][A-Z0-9-]*'; then newfield="${action##* }" action=addfield fi