diff options
-rwxr-xr-x | share/hydractl/trac-upgrade | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/share/hydractl/trac-upgrade b/share/hydractl/trac-upgrade index 31e8f52..c5774f9 100755 --- a/share/hydractl/trac-upgrade +++ b/share/hydractl/trac-upgrade @@ -30,6 +30,15 @@ fi # Upgrade for instance in `find $BASE -maxdepth 2 -name trac`; do + # Check for Trac + # + # Do this inside the loop to avoid giving an error + # message if there's no trac instance + if ! which trac-admin &> /dev/null; then + echo "Could not find a trac-admin executable, aborting" + exit 1 + fi + ( echo "Upgrading trac instance $instance..." cd $instance |