mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
IMPALA-4430: Update build scripts to die hard when IMPALA_HOME has spaces
Change-Id: I08b3d2b3f3e14c568d1672ee86ff2c52e8017b81 Reviewed-on: http://gerrit.cloudera.org:8080/9385 Reviewed-by: Tim Armstrong <tarmstrong@cloudera.com> Tested-by: Impala Public Jenkins
This commit is contained in:
committed by
Impala Public Jenkins
parent
e279f0f250
commit
4c1f0ac6c8
10
buildall.sh
10
buildall.sh
@@ -18,13 +18,19 @@
|
||||
# under the License.
|
||||
|
||||
set -euo pipefail
|
||||
trap 'echo Error in $0 at line $LINENO: $(cd "'$PWD'" && awk "NR == $LINENO" $0)' ERR
|
||||
|
||||
# run buildall.sh -help to see options
|
||||
|
||||
ROOT=`dirname "$0"`
|
||||
ROOT=`cd "$ROOT" >/dev/null; pwd`
|
||||
|
||||
if [[ "'$ROOT'" =~ [[:blank:]] ]]
|
||||
then
|
||||
echo "IMPALA_HOME cannot have spaces in the path"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
trap 'echo Error in $0 at line $LINENO: $(cd "'$PWD'" && awk "NR == $LINENO" $0)' ERR
|
||||
|
||||
# Grab this *before* we source impala-config.sh to see if the caller has
|
||||
# kerberized environment variables already or not.
|
||||
NEEDS_RE_SOURCE_NOTE=1
|
||||
|
||||
Reference in New Issue
Block a user