mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 04:59:30 +00:00
fix: replace . & .. & $PWD with ~
This commit is contained in:
@@ -82,9 +82,10 @@ export default async function (data) {
|
||||
v.startsWith('.') ||
|
||||
v.startsWith('..') ||
|
||||
v.startsWith('/') ||
|
||||
v.startsWith('~')
|
||||
v.startsWith('~') ||
|
||||
v.startsWith('$PWD')
|
||||
) {
|
||||
// Nothing to do here, host path
|
||||
v = v.replace('$.', `~`).replace('$..', '~').replace('$$PWD', '~');
|
||||
} else {
|
||||
if (!path) {
|
||||
path = v;
|
||||
|
||||
Reference in New Issue
Block a user