Aaron Griffin schrieb:
This would work, assuming all the error handling is in place (i.e.
ensure editor can be called, if undefined, use vi by default, ensure
return value before committing, ensure non-zero length commit
message).

What about the simple way:

if [ -z "$1" ]; then
  echo "Please ..."
  exit 1
done

This way, the editor code path could be removed again.

If someone wants a more complex commit message, take Francois' aproach and svn commit manually before calling XXXpkg.

A simple commit message can be given on the command line and doesn't need a separate editor.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to