summaryrefslogtreecommitdiff
path: root/crocoite/controller.py
diff options
context:
space:
mode:
Diffstat (limited to 'crocoite/controller.py')
-rw-r--r--crocoite/controller.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/crocoite/controller.py b/crocoite/controller.py
index 9105997..432d434 100644
--- a/crocoite/controller.py
+++ b/crocoite/controller.py
@@ -320,7 +320,11 @@ class RecursiveController:
logger = self.logger.bind (url=url)
def formatCommand (e):
- return e.format (url=url, dest=dest.name)
+ # provide means to disable variable expansion
+ if e.startswith ('!'):
+ return e[1:]
+ else:
+ return e.format (url=url, dest=dest.name)
def formatPrefix (p):
return p.format (host=url.host, date=datetime.utcnow ().isoformat ())