diff --git a/core/src/main/java/hudson/FilePath.java b/core/src/main/java/hudson/FilePath.java index 2bb8065469..e072d24923 100644 --- a/core/src/main/java/hudson/FilePath.java +++ b/core/src/main/java/hudson/FilePath.java @@ -2456,7 +2456,7 @@ public final class FilePath implements Serializable { * (User's home directory in the Unix sense) of the given channel. */ public static FilePath getHomeDirectory(VirtualChannel ch) throws InterruptedException, IOException { - ch.call(new Callable() { + return ch.call(new Callable() { public FilePath call() throws IOException { return new FilePath(new File(System.getProperty("user.home"))); }