summaryrefslogtreecommitdiff
path: root/mach
diff options
context:
space:
mode:
Diffstat (limited to 'mach')
-rwxr-xr-xmach5
1 files changed, 2 insertions, 3 deletions
diff --git a/mach b/mach
index 2620d134e..715f1a9e3 100755
--- a/mach
+++ b/mach
@@ -27,11 +27,10 @@ class cfAction(argparse.Action):
self.setDockerCommand()
if values:
- files = [os.path.abspath(x) for x in values]
+ files = [os.path.relpath(os.path.abspath(x), start=cwd) for x in values]
else:
files = self.modifiedFiles()
- files = [os.path.join('/home/worker/nss', os.path.relpath(x, start=cwd))
- for x in files]
+ files = [os.path.join('/home/worker/nss', x) for x in files]
# First check if we can run docker.
try: