summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--text.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/text.py b/text.py
index 23fe1faec..479a518d2 100644
--- a/text.py
+++ b/text.py
@@ -461,7 +461,10 @@ class XconfiguratorWindow:
return INSTALL_NOOP
f = open (todo.instPath + "/tmp/SERVER", "w")
- f.write ("%s %d\n" % (todo.x.server, todo._cardindex))
+ if todo._cardindex == -1:
+ f.write ("%d\n" % todo._cardindex)
+ else:
+ f.write ("%s %d\n" % (todo.x.server, todo._cardindex))
f.close ()
screen.suspend ()