Projects
This commit is contained in:
@@ -288,6 +288,7 @@ const containerHome = '/home/officer';
|
||||
const resolveCwd = (home: string, cwd?: string) => {
|
||||
if (!cwd || cwd === '~') return home;
|
||||
if (cwd.startsWith('~/')) return join(home, cwd.slice(2));
|
||||
if (cwd.startsWith('/')) return join(home, cwd.slice(1));
|
||||
return home;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user