changeset 81 | 2a1efb99c83d |
parent 75 | 9b57c88b2ab3 |
child 85 | 6d918f722075 |
--- a/rakelib/scm.rb Tue Nov 22 21:19:13 2016 +0000 +++ b/rakelib/scm.rb Thu Nov 24 10:27:37 2016 +0000 @@ -15,7 +15,11 @@ # visible here. To workaround, define them here. Ugly... module_function def sh(cmd, cwd: Dir.pwd, &block) - return RakeFileUtils::sh(cmd, cwd: cwd, &block) + begin + return RakeFileUtils::sh(cmd, cwd: cwd, &block) + rescue + return false + end end class CheckoutException < Exception