16 lines
385 B
Bash
Executable File
16 lines
385 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
if [ -z "${HIVE_DOWNLOAD_URL:-}" ]; then
|
|
version_check=$(echo $HIVE_VERSION | sed -e '/[0-9]\.[0-9]\{1,2\}\.[0-9]/d')
|
|
if [ ! -z $version_check ]; then
|
|
echo -e "Unable to install Hive: You should specify HIVE_DOWNLOAD_URL or HIVE_VERSION.\nAborting"
|
|
exit 1
|
|
fi
|
|
fi
|