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:]
|
additional=sys.argv[2:]
|
||||||
|
|
||||||
if verbose:
|
if verbose:
|
||||||
print("Target shell",destShell)
|
printDebug("Target shell",destShell)
|
||||||
print("Additional settings:",additional)
|
printDebug("Additional settings:",additional)
|
||||||
|
|
||||||
# Certain bashrc-s fail if these are set
|
# Certain bashrc-s fail if these are set
|
||||||
for v in ["FOAM_INST_DIR",
|
for v in ["FOAM_INST_DIR",
|
||||||
|
@ -229,7 +229,10 @@ class BashConvert(ShellConvert):
|
||||||
val=":".join(v)
|
val=":".join(v)
|
||||||
else:
|
else:
|
||||||
val=v
|
val=v
|
||||||
return 'export %s=%s' % (n,val)
|
if val.find(" "):
|
||||||
|
return 'export %s="%s"' % (n,val)
|
||||||
|
else:
|
||||||
|
return 'export %s=%s' % (n,val)
|
||||||
|
|
||||||
def toAlias(self,n,v):
|
def toAlias(self,n,v):
|
||||||
return "alias %s='%s'" % (n,v)
|
return "alias %s='%s'" % (n,v)
|
||||||
|
|
Reference in a new issue