Skip to content

Commit

Permalink
Merge pull request #30 from philbot9/absolute-script-path
Browse files Browse the repository at this point in the history
use absolute path to scripts directory
  • Loading branch information
Jonas Enge committed Jan 31, 2017
2 parents b5cec1e + 28238e7 commit 62d9dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/run-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = (options) => {
if (!options.script) {
throw Error('Missing required input: options.script')
}
const scriptsPath = pathJoin('scripts/')
const scriptsPath = pathJoin(__dirname, '../scripts/')
const filePath = scriptsPath + options.script.split(' ')[0]
if (!fileExists(filePath)) {
throw Error(`File: ${filePath} does not exist`)
Expand Down

0 comments on commit 62d9dcf

Please sign in to comment.