Skip to content

Commit

Permalink
Target directory created from config value
Browse files Browse the repository at this point in the history
The target directory was being created based on a hardcoded string
rather from the target directory configuration value.

Backport f6196cf
  • Loading branch information
epixa committed Jun 16, 2016
1 parent 2fd18ad commit a61e91f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tasks/build/archives.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = function createPackages(grunt) {
let { execFile } = require('child_process');
let { all, fromNode } = require('bluebird');

const targetDir = config.get('target');
let buildPath = resolve(config.get('root'), 'build');
let exec = async (cmd, args) => {
grunt.log.writeln(` > ${cmd} ${args.join(' ')}`);
Expand All @@ -29,7 +30,7 @@ module.exports = function createPackages(grunt) {
grunt.config.get('platforms')
.map(async platform => {

grunt.file.mkdir('target');
grunt.file.mkdir(targetDir);
await archives(platform);
})
)
Expand Down
2 changes: 1 addition & 1 deletion tasks/build/osPackages.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default (grunt) => {
const fpm = args => exec('fpm', args);

grunt.registerTask('_build:osPackages', function () {
grunt.file.mkdir('target');
grunt.file.mkdir(targetDir);

grunt.config.get('platforms')
.filter(({ name }) => /linux-x(86|64)$/.test(name))
Expand Down

0 comments on commit a61e91f

Please sign in to comment.