fix: replace . & .. & $PWD with ~
This commit is contained in:
@@ -40,9 +40,10 @@
|
||||
volume.startsWith('.') ||
|
||||
volume.startsWith('..') ||
|
||||
volume.startsWith('/') ||
|
||||
volume.startsWith('~')
|
||||
volume.startsWith('~') ||
|
||||
volume.startsWith('$PWD')
|
||||
) {
|
||||
// Nothing to do here, host path
|
||||
volume = volume.replace('$.', `~`).replace('$..', '~').replace('$$PWD', '~');
|
||||
} else {
|
||||
if (!target) {
|
||||
target = volume;
|
||||
|
Reference in New Issue
Block a user