Skip to content

Commit

Permalink
ci: Return 0 if the archive logs is not specified
Browse files Browse the repository at this point in the history
To prevent failure before and consequently container leftover
return 0 instead of 1 from the archive_logs function, when
the log archive wasn't requested.

Signed-off-by: Ales Musil <amusil@redhat.com>
Signed-off-by: Dumitru Ceara <dceara@redhat.com>
  • Loading branch information
almusil authored and dceara committed Apr 26, 2023
1 parent 68ff0d6 commit f90cf7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function container_shell() {

function archive_logs() {
if [ -z "$archive_logs" ]; then
return 1;
return 0;
fi

log_dir=$CONTAINER_WORKSPACE/logs/
Expand Down

0 comments on commit f90cf7b

Please sign in to comment.