You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by cl...@apache.org on 2015/07/06 23:37:59 UTC

jena git commit: Changed to saver subshell idiom Added quotes to cope with spaces in FUSKEI_HOME name. cleans up fix for bug JENA-984

Repository: jena
Updated Branches:
  refs/heads/master d58c1a1ab -> 651f05311


Changed to saver subshell idiom
Added quotes to cope with spaces in FUSKEI_HOME name.
cleans up fix for bug JENA-984


Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/651f0531
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/651f0531
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/651f0531

Branch: refs/heads/master
Commit: 651f053115b2866628742ab2bf50c65b119947c8
Parents: d58c1a1
Author: Claude Warren <cl...@apache.org>
Authored: Mon Jul 6 19:50:30 2015 +0100
Committer: Claude Warren <cl...@apache.org>
Committed: Mon Jul 6 19:50:30 2015 +0100

----------------------------------------------------------------------
 jena-fuseki2/apache-jena-fuseki/fuseki | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/651f0531/jena-fuseki2/apache-jena-fuseki/fuseki
----------------------------------------------------------------------
diff --git a/jena-fuseki2/apache-jena-fuseki/fuseki b/jena-fuseki2/apache-jena-fuseki/fuseki
index 814433a..a74c7c9 100755
--- a/jena-fuseki2/apache-jena-fuseki/fuseki
+++ b/jena-fuseki2/apache-jena-fuseki/fuseki
@@ -371,8 +371,8 @@ start() {
       rm -f "$FUSEKI_PID"
     fi
 
-    OLD_DIR=`pwd`
-    cd $FUSEKI_HOME
+# use subshell to cd to FUSKEI_HOME directory and execute
+    (cd "$FUSEKI_HOME"
     if [ "$FUSEKI_USER" ]
     then
       touch "$FUSEKI_PID"
@@ -388,7 +388,7 @@ start() {
       disown $!
       echo $! > "$FUSEKI_PID"
     fi
-    cd $OLD_DIR
+)
     
     log_end_msg 0
     print_started