Skip to content
Snippets Groups Projects
Commit ed99a688 authored by Daniel Nemergut's avatar Daniel Nemergut
Browse files

Removed errexit to no longer exit the script when the first command exits

parent 3c402146
No related branches found
No related tags found
1 merge request!1484Removed errexit to no longer exit the script when the first command exits
Pipeline #12307 passed
......@@ -26,7 +26,6 @@ ${SBIN_PATH}/ingest_envoy --observation $1 $2
# Workflow will rename the directory to indicate the ingestion status
new_ingest_obs_sh = """#!/bin/sh
set -o errexit
running=$2.running
ingested=$2.ingested
......@@ -39,7 +38,13 @@ mv $2 $running
${SBIN_PATH}/ingest_envoy --observation $1 $running
status=$?
[ $status -eq 0 ] && mv $running $ingested || mv $running $failed
if [[ $status -eq 0 ]]; then
mv $running $ingested
else
mv $running $failed
fi
exit $status
"""
......
......@@ -51,7 +51,6 @@ done"""
# Workflow will rename the directory to indicate the ingestion status
new_ingest_mk_four_obs_sh = """#!/bin/sh
set -o errexit
ingested=$1.ingested
failed=$1.failed
......
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