Browse Source

Minor improvements

Hamilton Turner 11 years ago
parent
commit
3d3fba6c40
2 changed files with 2 additions and 2 deletions
  1. 1 1
      toolset/setup/linux/installer.py
  2. 1 1
      toolset/setup/linux/setup_util.py

+ 1 - 1
toolset/setup/linux/installer.py

@@ -295,7 +295,7 @@ EOF
       command = "yes yes | " + command
       command = "yes yes | " + command
         
         
     rel_cwd = setup_util.path_relative_to_root(cwd)
     rel_cwd = setup_util.path_relative_to_root(cwd)
-    print("INSTALL: %s (cwd=$FWROOT%s)" % (command, rel_cwd))
+    print("INSTALL: %s (cwd=$FWROOT/%s)" % (command, rel_cwd))
 
 
     while attempt <= max_attempts:
     while attempt <= max_attempts:
       error_message = ""
       error_message = ""

+ 1 - 1
toolset/setup/linux/setup_util.py

@@ -76,4 +76,4 @@ def get_fwroot():
 # v.s. FWROOT/go/bash_profile.sh 
 # v.s. FWROOT/go/bash_profile.sh 
 def path_relative_to_root(path):
 def path_relative_to_root(path):
     # Requires bash shell parameter expansion
     # Requires bash shell parameter expansion
-    return subprocess.check_output("D=%s && printf ${D#%s}"%(path, get_fwroot()), shell=True, executable='/bin/bash')
+    return subprocess.check_output("D=%s && printf \"${D#%s}\""%(path, get_fwroot()), shell=True, executable='/bin/bash')