32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
-
-
-
-
+
+
+
+
+
|
command=$*
allstatus=99
runstatus=99
logpropstatus=99
prev_env=".ezsteps/${prevstepname}.sh"
if [[ -e $prev_env ]];then
source $prev_env
fi
# prev_env=".ezsteps/${prevstepname}.sh"
# echo "prev_env=$prev_env"
# if [[ -e "${prev_env}" ]];then
# source $prev_env
# fi
# source the environment from the previous step if it exists
# if a logpro file exists then use it otherwise just run the command, nb// was using 2>&1
if [[ -e ${stepname}.logpro ]];then
# could do:
$command 2>&1| tee ${stepname}.log | logpro ${stepname}.logpro ${stepname}.html &> /dev/null
|