lib/tasks/github_actions/github_actions/container.rb in yast-rake-0.2.50 vs lib/tasks/github_actions/github_actions/container.rb in yast-rake-0.2.51

- old
+ new

@@ -73,11 +73,11 @@ run = "sleep" args = TIMEOUT end cmd = "docker create #{env_options(ENV_VARIABLES)} --rm --entrypoint " \ - "#{run} #{options} #{ENV["DOCKER_OPTIONS"]} #{image.shellescape} #{args}" + "#{run} #{options} #{ENV["DOCKER_OPTIONS"]} #{image.shellescape} #{args}" # contains the container ID @container = `#{cmd}`.chomp system("docker start #{container.shellescape} > /dev/null") end @@ -101,10 +101,10 @@ # @return [Boolean] `true` if the command succeeded (exit status 0), # `false` otherwise def run(cmd, env = {}) stage("Running command: #{cmd}") system("docker exec -it #{env_options(env)} #{container.shellescape} " \ - "sh -c #{cmd.shellescape}") + "sh -c #{cmd.shellescape}") $CHILD_STATUS.success? end # get the current working directory in the container # @return [String] the path