changeset 61:10c1848313c6

echo message if buildbot-worker-env isn't found
author John W. Eaton <jwe@octave.org>
date Fri, 22 Mar 2024 16:20:13 -0400
parents c8350f7d9834
children 7f3b5857f569
files master.cfg
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/master.cfg	Fri Mar 22 07:06:14 2024 -0400
+++ b/master.cfg	Fri Mar 22 16:20:13 2024 -0400
@@ -270,7 +270,7 @@
 class EnvShellCommand (ShellCommand):
   def __init__ (self, command = '', **kwargs):
     kwargs['command'] = [
-      'bash', '-c', 'if [ -f "$HOME/buildbot-worker-env" ]; then source "$HOME/buildbot-worker-env"; fi; %s' % command
+      'bash', '-c', 'if [ -f "$HOME/buildbot-worker-env" ]; then source "$HOME/buildbot-worker-env"; else echo "$HOME/buildbot-worker-env not found"; fi; %s' % command
     ]
     ShellCommand.__init__ (self, **kwargs)