From 4a64bc3cf80d2f5450237d3a9bcbf264554bdc96 Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Sun, 15 Mar 2020 14:33:02 +0000 Subject: [PATCH] Fixing problem with automatic location of the Fossil binary on Unix based systems, because 'which' command outputs a final space character. --- repository/Fossil/FossilRepo.class.st | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/repository/Fossil/FossilRepo.class.st b/repository/Fossil/FossilRepo.class.st index fc0998c..14c0130 100644 --- a/repository/Fossil/FossilRepo.class.st +++ b/repository/Fossil/FossilRepo.class.st @@ -39,7 +39,8 @@ FossilRepo class >> locateExecutable [ command: 'which'; arguments: #('fossil') ; redirectStdout; - runAndWaitOnExitDo: [ :process :outString | ^ outString ] + runAndWaitOnExitDo: [ :process :outString | + ^ outString allButLast ] ] { #category : #operation } @@ -49,8 +50,8 @@ FossilRepo >> add: fileRelativePath [ OSSUnixSubprocess new command: self class locateExecutable; - arguments: { 'add' . fileRelativePath }; workingDirectory: self localFolderName; + arguments: { 'add' . fileRelativePath }; redirectStdout; runAndWaitOnExitDo: [ :process :outString | ^ outString ] ]