mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Merge branch 'zsh-safe-chain-detection' into powershell-safe-chain-detection
This commit is contained in:
commit
ccce2279c9
1 changed files with 1 additions and 2 deletions
|
|
@ -84,10 +84,9 @@ function copyStartupFiles() {
|
||||||
const startupFiles = ["init-posix.sh", "init-pwsh.ps1"];
|
const startupFiles = ["init-posix.sh", "init-pwsh.ps1"];
|
||||||
|
|
||||||
for (const file of startupFiles) {
|
for (const file of startupFiles) {
|
||||||
|
const targetDir = path.join(os.homedir(), ".safe-chain", "scripts");
|
||||||
const targetPath = path.join(os.homedir(), ".safe-chain", "scripts", file);
|
const targetPath = path.join(os.homedir(), ".safe-chain", "scripts", file);
|
||||||
|
|
||||||
// Create target directory if it doesn't exist
|
|
||||||
const targetDir = targetPath.substring(0, targetPath.lastIndexOf("/"));
|
|
||||||
if (!fs.existsSync(targetDir)) {
|
if (!fs.existsSync(targetDir)) {
|
||||||
fs.mkdirSync(targetDir, { recursive: true });
|
fs.mkdirSync(targetDir, { recursive: true });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue