Skip to content

Commit 344243a

Browse files
committed
status was always 0 because incorrect placement of parenthesis
1 parent e1ed7a8 commit 344243a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ wait_for_data_container_to_finish_copy() {
4949
setup_glowroot() {
5050
if [ -f $GLOWROOT_ZIP ] && [ ! -d $GLOWROOT_DIR ] ; then
5151
status=0
52-
output=$(unzip -q "$GLOWROOT_ZIP" -d /opt/ 2>&1 || 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
5555
echo "$output"

0 commit comments

Comments
 (0)