Skip to content

Commit

Permalink
ArchiveFiles: miscalculating root folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Sholl authored and yacaovsnc committed Sep 28, 2016
1 parent 3df7fee commit 6dc0944
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Tasks/ArchiveFiles/archivefiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function getOptions() {
return { cwd: dirName };
} else {
var stats: tl.FsStats = tl.stats(rootFolder);
if (stats.isFile) {
if (stats.isFile()) {
dirName = path.dirname(rootFolder);
} else {
dirName = rootFolder;
Expand Down Expand Up @@ -269,7 +269,7 @@ function doWork() {
if (replaceExistingArchive) {
try {
var stats: tl.FsStats = tl.stats(archiveFile);
if (stats.isFile) {
if (stats.isFile()) {
console.log('removing existing archive file before creation: ' + archiveFile);
} else {
failTask('Specified archive file: ' + archiveFile + ' already exists and is not a file.');
Expand Down
2 changes: 1 addition & 1 deletion Tasks/ArchiveFiles/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"version": {
"Major": 1,
"Minor": 0,
"Patch": 5
"Patch": 6
},
"groups": [
{
Expand Down
2 changes: 1 addition & 1 deletion Tasks/ArchiveFiles/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"version": {
"Major": 1,
"Minor": 0,
"Patch": 5
"Patch": 6
},
"groups": [
{
Expand Down

0 comments on commit 6dc0944

Please sign in to comment.