From 32303202a863e18d2dcd6fdef620bffe3e8a2336 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Wed, 16 Jul 2008 19:14:16 +0000 Subject: [PATCH] made more robust. See http://www.nabble.com/%E2%80%8EProblem-running-shell-scripts-on-unix-slave-tt18482288.html git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10855 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/tasks/Shell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/tasks/Shell.java b/core/src/main/java/hudson/tasks/Shell.java index dc18f76014..a595be07af 100644 --- a/core/src/main/java/hudson/tasks/Shell.java +++ b/core/src/main/java/hudson/tasks/Shell.java @@ -98,7 +98,7 @@ public class Shell extends CommandInterpreter { } public void setShell(String shell) { - this.shell = shell; + this.shell = Util.fixEmptyAndTrim(shell); save(); }