Unlink scripts submodule and commit contents as normal directory
This commit is contained in:
1 parent
4f7dea111f
commit
6488b3ea85
48 files changed
+2876
-1
No files matched your search
@@ -0,0 +1,12 @@
|
||||
const os = require('node:os');
|
||||
const path = require('node:path');
|
||||
|
||||
module.exports = inputPath => {
|
||||
if (typeof inputPath !== 'string') return inputPath;
|
||||
|
||||
// Replace tilde with home directory
|
||||
const expandedPath = inputPath.replace(/^~(?=$|\/|\\)/, os.homedir());
|
||||
|
||||
// Return absolute path
|
||||
return path.resolve(expandedPath);
|
||||
};
|
||||
Reference in new issue
Block a user