Minor fixes and spelling corrections in validate-distribution.sh
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/afc0efc4 Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/afc0efc4 Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/afc0efc4 Branch: refs/heads/TINKERPOP-1360 Commit: afc0efc48cd94b6ee790c3a20480b421520c1552 Parents: 07f42e8 Author: Stephen Mallette <sp...@genoprime.com> Authored: Wed Jul 20 08:12:09 2016 -0400 Committer: Stephen Mallette <sp...@genoprime.com> Committed: Wed Jul 20 08:12:09 2016 -0400 ---------------------------------------------------------------------- bin/validate-distribution.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/afc0efc4/bin/validate-distribution.sh ---------------------------------------------------------------------- diff --git a/bin/validate-distribution.sh b/bin/validate-distribution.sh index 68cde4d..30a0345 100755 --- a/bin/validate-distribution.sh +++ b/bin/validate-distribution.sh @@ -72,7 +72,7 @@ cd ${TMP_DIR} # validate downloads ZIP_FILENAME=`grep -o '[^/]*$' <<< ${URL}` DIR_NAME=`sed -e 's/-[^-]*$//' <<< ${ZIP_FILENAME}` -COMPONENT=`tr '-' $'\n' <<< ${ZIP_FILENAME} | head -n3 | awk '{for (i = 1; i <= NF; i++) sub(/./, toupper(substr($i, 1, 1)), $1); print}' | paste -sd ' ' -` +COMPONENT=`tr '-' $'\n' <<< ${ZIP_FILENAME} | head -n3 | awk '{for (i = 1; i <= NF; i++) sub(/./, toupper(substr($i, 1, 1)), $1); print}' | paste -sd ' ' - | sed 's/Tinkerpop/TinkerPop/g'` if [ "${TYPE}" = "SOURCE" ]; then DIR_NAME=`sed -e 's/^[^-]*-//' <<< ${DIR_NAME}` @@ -101,7 +101,7 @@ ACTUAL=`md5sum ${ZIP_FILENAME} | awk '{print $1}'` [ "$ACTUAL" = "${EXPECTED}" ] || { echo "failed"; exit 1; } echo "OK" -echo -n " * SHA1 chacksum ... " +echo -n " * SHA1 checksum ... " EXPECTED=`cat ${ZIP_FILENAME}.sha1` ACTUAL=`sha1sum ${ZIP_FILENAME} | awk '{print $1}'` [ "$ACTUAL" = "${EXPECTED}" ] || { echo "failed"; exit 1; } @@ -173,4 +173,4 @@ if [ "${TYPE}" = "CONSOLE" ]; then [[ `bin/gremlin.sh <<< ${SCRIPT} | grep '^==>' | sed -e 's/^==>//'` -eq 6 ]] || { echo "failed to evaluate sample script"; exit 1; } [[ `bin/gremlin.sh -e ${SCRIPT_FILENAME}` -eq 6 ]] || { echo "failed to evaluate sample script using -e option"; exit 1; } echo "OK" -fi +fi \ No newline at end of file