Skip to content

Commit e1ed7a8

Browse files
committed
Avoid warning output from unzip
1 parent 7011a1f commit e1ed7a8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/d2_docker/config/dhis2-core-entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ wait_for_data_container_to_finish_copy() {
4949
setup_glowroot() {
5050
if [ -f $GLOWROOT_ZIP ] && [ ! -d $GLOWROOT_DIR ] ; then
5151
status=0
52-
unzip -q "$GLOWROOT_ZIP" -d /opt/ || status=$?
52+
output=$(unzip -q "$GLOWROOT_ZIP" -d /opt/ 2>&1 || status=$?)
5353
# Ignore RC=1 that implies only warnings and no errors (like an empty zip file)
5454
if [ $status -gt 1 ]; then
55+
echo "$output"
5556
exit $status
5657
fi
5758
if [ -d $GLOWROOT_DIR ] ; then

0 commit comments

Comments
 (0)