1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Use whence' (which works on both bash and vanilla sh) instead of test -p' (which is bash-specific)

git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@7040 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jamis Buck 2007-06-16 21:17:20 +00:00
parent c041a2d968
commit 922993d1fb
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,7 @@
*SVN*
* Use `whence' to test whether a command exists in the remote path, instead of `test -p' [Jamis Buck]
* Make sure the connection factory is established synchronously, to avoid multiple gateway instances being spawned [Jamis Buck]
* Make sure symlink and finalize_update tasks reference the most recent release when called by themselves [Jamis Buck]

View file

@ -23,7 +23,7 @@ module Capistrano
def command(command, options={})
@message ||= "`#{command}' could not be found in the path"
try("type -p #{command}", options)
try("which #{command}", options)
self
end