From 4857ad6b264bea99bb24a797b43b4f0acfb1ee8f Mon Sep 17 00:00:00 2001 From: Eric House Date: Mon, 15 Aug 2016 17:29:28 -0700 Subject: [PATCH] complain when CLASSPATH isn't set for success --- xwords4/android/scripts/getsigs.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xwords4/android/scripts/getsigs.sh b/xwords4/android/scripts/getsigs.sh index fd8d6d6fe..22c05da91 100755 --- a/xwords4/android/scripts/getsigs.sh +++ b/xwords4/android/scripts/getsigs.sh @@ -1,9 +1,10 @@ -#!/bin/sh +#!/bin/bash set -e -u DIR="" NODE="" +CLASSPATH=${CLASSPATH:-""} usage() { [ $# -gt 0 ] && echo "Error: $1" @@ -12,6 +13,11 @@ usage() { exit 1 } +# Make sure android.jar is on CLASSPATH +if [ "${CLASSPATH/android.jar/}" = "$CLASSPATH" ]; then + usage "android.jar not on CLASSPATH" +fi + while [ $# -gt 1 ]; do case $1 in --dir)