Hi,
I don't think initenv command can be used to check. The initenv
command prompts for new Trac Environment when the target directory is
missing.
$ trac-admin /tmp/missing initenv
Creating a new Trac environment at /tmp/missing
Trac will first ask a few questions about your environment
in order to initialize and prepare the project database.
Please enter the name of your project.
This name will be used in page titles and descriptions.
Project Name [My Project]>
Instead, we could check "upgrade" is listed in output of the help
command for the target directory.
$ trac-admin /tmp/tracenv help | grep -q '^upgrade '
$ echo $?
0
$ trac-admin /tmp/missing help | grep -q '^upgrade '
$ echo $?
1
--
Jun Omae <
jun...@gmail.com> (大前 潤)