From: Neal Davis Date: Mon, 27 Jan 2014 20:41:04 +0000 (-0600) Subject: swc-windows-installer.py: Quote $PATH export to account for spaces. X-Git-Tag: v0.1~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ed160e5d759217500ecc7602197ada9472ca38ac;p=swc-setup-windows-installer.git swc-windows-installer.py: Quote $PATH export to account for spaces. Many people have spaces in their Windows user names, leading to trouble with an unquoted $PATH export. This file now quotes the $PATH addition accordingly. --- diff --git a/swc-windows-installer.py b/swc-windows-installer.py index 041642a..f10377d 100755 --- a/swc-windows-installer.py +++ b/swc-windows-installer.py @@ -83,7 +83,7 @@ def update_bash_profile(extra_paths=()): lines = [ '', '# Add paths for Software-Carpentry-installed scripts and executables', - 'export PATH=$PATH:{}'.format(':'.join( + 'export PATH=\"$PATH:{}\"'.format(':'.join( make_posix_path(path) for path in extra_paths),), '', '# Make nano the default editor',