projects
/
skytools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1f0127
)
Add ; to commands strings specified via -c
author
Martin Pihlak
<martin.pihlak@gmail.com>
Wed, 15 Apr 2009 13:29:43 +0000
(16:29 +0300)
committer
Martin Pihlak
<martin.pihlak@gmail.com>
Wed, 15 Apr 2009 13:29:43 +0000
(16:29 +0300)
python/newadm.py
patch
|
blob
|
blame
|
history
diff --git
a/python/newadm.py
b/python/newadm.py
index 46b2ddaed350e992078f4d95aa07f8d0b4e04e80..5bd503b4b360c7fb1075efc8c82bc63d63fcd3ab 100755
(executable)
--- 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()