For some reason quotes are needed on Linux
This commit is contained in:
parent
170d1bb369
commit
76d193a557
1 changed files with 6 additions and 3 deletions
|
@ -89,8 +89,8 @@ destShell=sys.argv[1]
|
|||
additional=sys.argv[2:]
|
||||
|
||||
if verbose:
|
||||
print("Target shell",destShell)
|
||||
print("Additional settings:",additional)
|
||||
printDebug("Target shell",destShell)
|
||||
printDebug("Additional settings:",additional)
|
||||
|
||||
# Certain bashrc-s fail if these are set
|
||||
for v in ["FOAM_INST_DIR",
|
||||
|
@ -229,6 +229,9 @@ class BashConvert(ShellConvert):
|
|||
val=":".join(v)
|
||||
else:
|
||||
val=v
|
||||
if val.find(" "):
|
||||
return 'export %s="%s"' % (n,val)
|
||||
else:
|
||||
return 'export %s=%s' % (n,val)
|
||||
|
||||
def toAlias(self,n,v):
|
||||
|
|
Reference in a new issue