From a18f7f45d3d21cc6a63bd8aee7458aa8e7a49ca9 Mon Sep 17 00:00:00 2001 From: Daniel Poelzleithner Date: Thu, 30 Apr 2015 15:18:58 +0200 Subject: [PATCH] run bash with x flag instead of echo. the echo mode break multiline statements in the job file makeing it very hard to do something readable or echo a multiline file into a file. bash already provides this functionality with the x flag, so simply activate it. --- lib/build.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/build.rb b/lib/build.rb index 5842082..6b150fd 100644 --- a/lib/build.rb +++ b/lib/build.rb @@ -42,12 +42,11 @@ def run end @run_file.puts %|#!/bin/bash| - @run_file.puts %|set -e| @run_file.puts %|trap 'kill -s INT 0' EXIT| + @run_file.puts %|set -ex| @commands.each do |command| command.strip! - @run_file.puts %|echo #{command.shellescape}| @run_file.puts(command) end @run_file.close