From 0bf1d9a813d7b2fc1e5d390c82bedf0e7caf9f29 Mon Sep 17 00:00:00 2001 From: Gabriel Baker Date: Tue, 14 May 2013 13:16:22 +0100 Subject: [PATCH] remove slash --- PHPCI/Builder.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PHPCI/Builder.php b/PHPCI/Builder.php index 5ac7a9b0..ec47b479 100644 --- a/PHPCI/Builder.php +++ b/PHPCI/Builder.php @@ -133,6 +133,10 @@ class Builder case 'local': $reference = $this->build->getProject()->getReference(); $this->buildPath = $this->ciDir . 'build/' . $buildId; + // don't want no slash on the end + if(substr($reference, -1) == '/') { + $reference = substr($reference, 0, -1) + } if(is_link($this->buildPath) && is_file($this->buildPath)) { } else { symlink($reference, $this->buildPath);