shellcheck: Fix errors and warnings

This commit is contained in:
Björn Busse 2021-03-06 00:58:28 +01:00
parent e838ccf359
commit 3105c8ac3f

View File

@ -6,7 +6,6 @@ HBASE_VERSION="2.4.1"
HBASE_FILE="hbase-${HBASE_VERSION}-bin.tar.gz" HBASE_FILE="hbase-${HBASE_VERSION}-bin.tar.gz"
HBASE_URL="https://downloads.apache.org/hbase/${HBASE_VERSION}/${HBASE_FILE}" HBASE_URL="https://downloads.apache.org/hbase/${HBASE_VERSION}/${HBASE_FILE}"
HBASE_FILE_CKSUM="5afb643c2391461619516624168e042b42a66e25217a3319552264c6af522e3a21a5212bfcba759b7b976794648ef13ee7b5a415f33cdb89bba43d40162aa685" HBASE_FILE_CKSUM="5afb643c2391461619516624168e042b42a66e25217a3319552264c6af522e3a21a5212bfcba759b7b976794648ef13ee7b5a415f33cdb89bba43d40162aa685"
HBASE_HOST="127.0.0.1"
HBASE_CONFIG="hbase/conf/hbase-site.xml" HBASE_CONFIG="hbase/conf/hbase-site.xml"
HBASE_TEST_SUITE_EXECUTABLE="hbase/bin/hbase" HBASE_TEST_SUITE_EXECUTABLE="hbase/bin/hbase"
@ -30,8 +29,8 @@ prepare_hbase() {
printf "HBase archive exists\n" printf "HBase archive exists\n"
fi fi
else else
printf "Downloading ${1}\n" printf "Downloading %s\n" "$1"
curl -LO ${1} curl -LO "${1}"
fi fi
printf "Extracting HBase archive\n" printf "Extracting HBase archive\n"
@ -42,7 +41,7 @@ prepare_hbase() {
create_config() { create_config() {
printf "Writing HBase config\n" printf "Writing HBase config\n"
cat <<EOF > $2 cat <<EOF > "$2"
<?xml version="1.0"?> <?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration> <configuration>