Skip to content
Snippets Groups Projects

do not hard exit on error

Merged Hahn Axel (hahn) requested to merge 6877_final_status_in_log into master
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
+ 4
2
@@ -35,6 +35,8 @@ logdir=/var/log/imldeployment-client
# keep last N logs per project
typeset -i iKeep=10
typeset -i rc=0
wait=0
# wait=1
@@ -394,11 +396,11 @@ test -d "${logdir}" || mkdir -p "${logdir}"
for myprofile in $allprofiles
do
( deploy $myprofile; logdelete $myprofile ) 2>&1 | tee ${logdir}/${myprofile}__$(date +%Y-%m-%d__%H%M%S).log
test ${PIPESTATUS[0]} -eq 0 || exit ${PIPESTATUS[0]}
# test ${PIPESTATUS[0]} -eq 0 || exit ${PIPESTATUS[0]}
rc+=${PIPESTATUS[0]}
profile=
done
rc=$?
profile=
header "All done."
echo exiting with statuscode $rc
Loading