Skip to content

Commit

Permalink
chore: rename compose back to findCommand.
Browse files Browse the repository at this point in the history
Revert version bump
  • Loading branch information
unional committed Dec 18, 2018
1 parent 4073809 commit 21534c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = function(){
var command = null

commands.some(function(c){
if (isExec(compose(c))){
if (isExec(findCommand(c))){
command = c
return true
}
Expand All @@ -25,7 +25,7 @@ function isExec(command){
}
}

function compose(command){
function findCommand(command){
if (/^win/.test(platform)){
return "where " + command
} else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "find-exec",
"version": "1.0.1",
"version": "1.0.0",
"description": "Finds first available shell command from a list.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 21534c5

Please sign in to comment.