Sha256: 4ea15a8f472cc199b9febf386c5f1879264f3e44daac04bd81b4a56bb79d1960

Contents?: true

Size: 554 Bytes

Versions: 36

Compression:

Stored size: 554 Bytes

Contents

#!/usr/bin/env bash

ROOT_DIRECTORY=$(dirname $(readlink -f ${BASH_SOURCE[0]}))

function post_exec_wrapper {
    echo $? > "$ROOT_DIRECTORY/<%= File.basename(@bash_status_file) %>"
    # Print end flags
    echo -n <%= cmd.end_err %> 1>&2
    echo -n <%= cmd.end_out %>
}

function pre_exec_wrapper {
    # Print begin flags
    echo -n <%= cmd.begin_err %> 1>&2
    echo -n <%= cmd.begin_out %>
}

trap 'post_exec_wrapper' INT TERM EXIT

## Started
pre_exec_wrapper
bash --rcfile "<%= @bashrc_file %>" <%= File.join(@bash_scripts_dir, "#{cmd}.sh" ) %>

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
kameleon-builder-2.10.11 contrib/kameleon_exec_cmd_wrapper.sh
kameleon-builder-2.10.10 contrib/kameleon_exec_cmd_wrapper.sh
kameleon-builder-2.10.9 contrib/kameleon_exec_cmd_wrapper.sh
kameleon-builder-2.10.8 contrib/kameleon_exec_cmd_wrapper.sh
kameleon-builder-2.10.7 contrib/kameleon_exec_cmd_wrapper.sh
kameleon-builder-2.10.6 contrib/kameleon_exec_cmd_wrapper.sh
kameleon-builder-2.10.5 contrib/kameleon_exec_cmd_wrapper.sh
kameleon-builder-2.10.4 contrib/kameleon_exec_cmd_wrapper.sh
kameleon-builder-2.10.3 contrib/kameleon_exec_cmd_wrapper.sh
kameleon-builder-2.10.2 contrib/kameleon_exec_cmd_wrapper.sh
kameleon-builder-2.10.1 contrib/kameleon_exec_cmd_wrapper.sh
kameleon-builder-2.9.4 contrib/kameleon_exec_cmd_wrapper.sh
kameleon-builder-2.9.2 contrib/kameleon_exec_cmd_wrapper.sh
kameleon-builder-2.9.1 contrib/kameleon_exec_cmd_wrapper.sh
kameleon-builder-2.9.0 contrib/kameleon_exec_cmd_wrapper.sh
kameleon-builder-2.8.3 contrib/kameleon_exec_cmd_wrapper.sh
kameleon-builder-2.8.2 contrib/kameleon_exec_cmd_wrapper.sh
kameleon-builder-2.8.1 contrib/kameleon_exec_cmd_wrapper.sh
kameleon-builder-2.7.8 contrib/kameleon_exec_cmd_wrapper.sh
kameleon-builder-2.7.7 contrib/kameleon_exec_cmd_wrapper.sh