Skip to content

Commit

Permalink
Fix: reinitialize bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SANTHOSH17-DOT committed Oct 16, 2023
1 parent 69b5a9e commit faff8fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/vc/init.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/vc/init.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/vc/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export async function Init(cwd: string,ipfs_node_url:string){
let reinitialize = false;
if(fs.existsSync(cwd+"/.statik")){
reinitialize = true;
fs.rmSync(cwd+"/.statik", {recursive: true})
fs.rmdirSync(cwd+"/.statik", {recursive: true})
}
fs.mkdirSync(cwd+"/.statik")
fs.mkdirSync(cwd+"/.statik/refs/heads",{recursive: true})
Expand Down

0 comments on commit faff8fe

Please sign in to comment.