Skip to content

Commit 940abfd

Browse files
committed
373 Change find-out-command from type to which
1 parent 777fcfc commit 940abfd

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

plugins/publish/eject.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# -*- coding: utf-8 -*-
22
# Name:: Automatic::Plugin::Publish::Eject
33
# Author:: soramugi <http://soramugi.net>
4+
# 774 <http://id774.net>
45
# Created:: Jun 9, 2013
5-
# Updated:: Jan 15, 2014
6+
# Updated:: May 16, 2014
67
# Copyright:: Copyright (c) 2012-2014 Automatic Ruby Developers.
78
# License:: Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0.
89

@@ -32,9 +33,9 @@ def run
3233
end
3334

3435
def eject_cmd
35-
if `type -P eject` != '' # linux
36+
if `which eject` != '' # linux
3637
'eject ; eject -t'
37-
elsif `type -P drutil` != '' # mac
38+
elsif `which drutil` != '' # mac
3839
'drutil tray eject ; drutil tray close'
3940
end
4041
end

script/build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
kickstart() {
2424
export RACK_ROOT="."
2525
export RACK_ENV="test"
26-
export DATABASE_URL="$RACK_ROOT/db"
26+
#export DATABASE_URL="$RACK_ROOT/db"
2727
ruby -v
2828
test_subcommand log info started.
2929
}
3030

3131
exec_rspec() {
3232
$RACK_ROOT/bin/automatic -v
33-
bundle install --path vendor/gems
33+
#bundle install --path vendor/gems
3434
bundle update
3535
bundle exec rake simplecov
3636
}

0 commit comments

Comments
 (0)