Skip to content

Commit

Permalink
Merge pull request #284 from contentstack/release/fix
Browse files Browse the repository at this point in the history
fixed SRE issues
  • Loading branch information
cs-raj authored Jul 30, 2024
2 parents 57de757 + e040278 commit e48d52b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/app/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export default class Create extends BaseCommand<typeof Create> {
// Get the directory inside the zip file
const zipEntries = zip.getEntries();
const firstEntry = zipEntries[0];
const sourcePath = resolve(dataDir, firstEntry.entryName.split("/")[0]);
const sourcePath = resolve(sanitizePath(dataDir), sanitizePath(firstEntry.entryName.split("/")[0]));

if (this.flags["data-dir"] && !existsSync(this.flags["data-dir"])) {
mkdirSync(this.flags["data-dir"], { recursive: true });
Expand Down

0 comments on commit e48d52b

Please sign in to comment.