From 2687f66076412df0f7cfc98e4202b6285d8d1fa1 Mon Sep 17 00:00:00 2001 From: Martin Pihlak Date: Wed, 15 Apr 2009 16:29:43 +0300 Subject: [PATCH] Add ; to commands strings specified via -c --- python/newadm.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/newadm.py b/python/newadm.py index 46b2ddae..5bd503b4 100755 --- a/python/newadm.py +++ b/python/newadm.py @@ -518,6 +518,10 @@ class AdminConsole: print "cannot handle -c and -f together" sys.exit(1) + # append ; to cmd_str if needed + if self.cmd_str and not self.cmd_str.rstrip().endswith(';'): + self.cmd_str += ';' + cmd_str = self.cmd_str if self.cmd_file: cmd_str = open(self.cmd_file, "r").read() -- 2.39.5