how to pass variables from bash script .sh to Initialization Actions?

Comments

3 comments

  • Avatar
    michiel

    You can use the program_stdout installer variable to store the output of <runProgram>

            <runProgram>
                <program>sh</program>
                <programArguments>${build_project_directory}/dmi_info_linux.sh</programArguments>
             </runProgram>

           <setInstallerVariable name="your_var" value="${progam_stdout}"/>

     

  • Avatar
    Velarde, April Annegelli D

    How about if there are two or more output from the .sh file?

  • Avatar
    BitRock support

    Could you give more details regarding your requirements? The standard output - what is shown in the terminal when executing the command - is stored in the `progam_stdout` variable.

Please sign in to leave a comment.