fix: fix string escape sequences, per warnings
This commit is contained in:
parent
1d2d4697ec
commit
9f441164e7
2 changed files with 9 additions and 9 deletions
|
|
@ -50,8 +50,8 @@ def install(c, version=None, user=None):
|
|||
c.sudo(f'touch {profile}')
|
||||
c.sudo(f'chown {user}: {profile}')
|
||||
append(c, profile, 'export NVM_DIR="{}"'.format(nvm), **kwargs)
|
||||
append(c, profile, '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"', **kwargs)
|
||||
append(c, profile, '[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"', **kwargs)
|
||||
append(c, profile, '[ -s "$NVM_DIR/nvm.sh" ] && \\. "$NVM_DIR/nvm.sh"', **kwargs)
|
||||
append(c, profile, '[ -s "$NVM_DIR/bash_completion" ] && \\. "$NVM_DIR/bash_completion"', **kwargs)
|
||||
|
||||
node = version or 'node'
|
||||
cmd = "bash -l -c 'nvm install {}'".format(node)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue