From 6e1b8ad3290822de91b3571462262989d8a0d4dc Mon Sep 17 00:00:00 2001 From: Akihiko Horiuchi <12ff5b8@gmail.com> Date: Tue, 19 Jan 2016 00:02:53 +0900 Subject: [PATCH] Fix shell method on backend (close #158) --- lib/itamae/backend.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/itamae/backend.rb b/lib/itamae/backend.rb index 237ffa02..2a14484e 100644 --- a/lib/itamae/backend.rb +++ b/lib/itamae/backend.rb @@ -36,7 +36,7 @@ def create(type, opts = {}) class Base attr_reader :executed_commands - + def initialize(options) @options = options @backend = create_specinfra_backend @@ -189,7 +189,7 @@ def build_command(commands, options) end def shell - @options[:shell] + @options[:shell] || '/bin/sh' end def run_command_with_profiling(command)