Skip to content
This repository was archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
some minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ispringer committed Apr 28, 2011
1 parent 3c14cc9 commit cc0bd46
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions chkdist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pass()
fail()
{
_MSG="$1"
echo "[FAILED] $_MSG" >&2
echo "[FAILED] $_MSG"
EXIT_CODE=2
return 1
}
Expand Down Expand Up @@ -87,10 +87,10 @@ else
fi

# Unzip the dist zip to a temp dir.
TMP_DIR="/tmp/chkjondist$$"
TMP_DIR="/tmp/chkdist$$"
unzip -q "$RHQ_DIST_ZIPFILE" -d $TMP_DIR

# e.g.: /tmp/chkjondist12345/rhq-server-4.0.0)
# e.g.: /tmp/chkdist12345/rhq-server-4.0.0)
RHQ_DIR=`ls -d $TMP_DIR/*`

AS_CONFIG_DIR="$RHQ_DIR/jbossas/server/default"
Expand All @@ -117,7 +117,8 @@ SNAPSHOT_JARS=`find "$RHQ_EAR_DIR" -name "*-SNAPSHOT.jar"`
if [ -z "$SNAPSHOT_JARS" ]; then
pass "No snapshot jars are included."
else
fail "The following snapshot jars are included: $SNAPSHOT_JARS"
fail "The following snapshot jars are included:"
echo "$SNAPSHOT_JARS"
fi

# Check encoding of message bundles.
Expand Down

0 comments on commit cc0bd46

Please sign in to comment.