meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux:bash:error_handling [2020/06/16 11:58] – created niziaklinux:bash:error_handling [2020/06/16 11:59] (current) niziak
Line 10: Line 10:
     set -o pipefail     set -o pipefail
     echo "task() started"     echo "task() started"
-    do_command1 && banner OK || banner ERROR +    do_command1 ${1} ${2} && banner OK || banner ERROR 
-    do_command2 && banner OK || banner ERROR+    do_command2 ${1} ${2} && banner OK || banner ERROR
     build_cmd_step_1     build_cmd_step_1
   build_cmd_step_2   build_cmd_step_2
Line 18: Line 18:
 )} )}
  
-task()+task param1 param2
 </code> </code>