Skip to content

Commit

Permalink
Fix avocado-submit script for Spark 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnothaft committed Jun 5, 2017
1 parent 664ee45 commit 7d0011d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/avocado-submit
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ else
ASSEMBLY_DIR="$SCRIPT_DIR/avocado-cli/target"
fi

num_jars="$(ls -1 "$ASSEMBLY_DIR" | grep "^avocado-cli_[0-9A-Za-z\.-]*\.jar$" | grep -v javadoc | wc -l)"
num_jars="$(ls -1 "$ASSEMBLY_DIR" | grep "^avocado-cli[0-9A-Za-z\_\.-]*\.jar$" | grep -v javadoc | wc -l)"
if [ "$num_jars" -eq "0" ]; then
echo "Failed to find AVOCADO cli assembly in $ASSEMBLY_DIR." 1>&2
echo "You need to build AVOCADO before running this program." 1>&2
exit 1
fi

ASSEMBLY_JARS="$(ls -1 "$ASSEMBLY_DIR" | grep "^avocado-cli_[0-9A-Za-z\.-]*\.jar$" | grep -v javadoc || true)"
ASSEMBLY_JARS="$(ls -1 "$ASSEMBLY_DIR" | grep "^avocado-cli[0-9A-Za-z\_\.-]*\.jar$" | grep -v javadoc || true)"
if [ "$num_jars" -gt "1" ]; then
echo "Found multiple AVOCADO cli assembly jars in $ASSEMBLY_DIR:" 1>&2
echo "$ASSEMBLY_JARS" 1>&2
Expand Down

0 comments on commit 7d0011d

Please sign in to comment.