Skip to content

Commit 6260399

Browse files
ryanhatfielddwilsonactual
authored andcommitted
Fix extension init command for non Windows users
1 parent 2efcf96 commit 6260399

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/exec/extension/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export class ExtensionInit extends extBase.ExtensionBase<InitResult> {
239239
trace.debug("Writing buffer for " + fileName);
240240
const noLeadingFolderFileName = fileName.substr(fileName.indexOf("/"));
241241
const fullPath = path.join(initPath, noLeadingFolderFileName);
242-
if (fullPath.endsWith("\\")) {
242+
if (fullPath.endsWith("\\") || fullPath.endsWith("/")) {
243243
// don't need to "write" the folders since they are handled by createFolderIfNotExists().
244244
return;
245245
}

0 commit comments

Comments
 (0)