Skip to content
Snippets Groups Projects
Commit 7ddb6c3b authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

do not hard exit on error

parent 1aec258a
No related branches found
No related tags found
1 merge request!17do not hard exit on error
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment