read_codesign 310 B

123456789
  1. autoload -Uz log_info
  2. if (( ! ${+CODESIGN_IDENT} )) {
  3. typeset -g CODESIGN_IDENT
  4. log_info 'Setting up Apple Developer ID for application codesigning...'
  5. read CODESIGN_IDENT'?Apple Developer Application ID: '
  6. }
  7. typeset -g CODESIGN_TEAM=$(print "${CODESIGN_IDENT}" | /usr/bin/sed -En 's/.+\((.+)\)/\1/p')