Skip to content

Commit

Permalink
Removed tar result validation for the better times (to be fixed under #…
Browse files Browse the repository at this point in the history
  • Loading branch information
LibertyPaul committed Dec 29, 2019
1 parent 2d2ec89 commit bd41c20
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions tools/extractIncomingMessages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,18 @@ for f in $(find "$srcDir" -type f -name '*.tar.gz' | sort); do
2>&1 \
)"

if [ $? -ne 0 ]; then
if [ "$(echo "$res" | grep 'Not found in archive' -c)" -gt 0 ]; then
echo_yellow "Incoming Messages were not found. Continuing."
else
echo_red "Failed. Aborting."
echo "$res"
exit 1
fi
fi
# TODO: tar returns non-zero result if any of wildcards unmatched
# Need to create a proper validation
#if [ $? -ne 0 ]; then
# if [ "$(ls --almost-all | wc -l)" -gt 0 ]; then
# echo_green "Done."
# else
# echo_red "Failed. Aborting."
# echo "$res"
# exit 1
# fi
#fi

echo_green "Done."

for incomingMessages in $(find "$tmpDir" -type f); do
fName="$(basename "$incomingMessages")"
Expand Down

0 comments on commit bd41c20

Please sign in to comment.