Bug 1414255 - Fix shellcheck warnings about missing quotes

`SC2086: Double quote to prevent globbing and word splitting`

See:
https://github.com/koalaman/shellcheck/wiki/SC2086
This commit is contained in:
Ed Morley 2017-11-03 14:32:31 +00:00
Родитель 934c6a2ab9
Коммит 37b2c9855e
11 изменённых файлов: 12 добавлений и 12 удалений

Просмотреть файл

@ -5,7 +5,7 @@
set -euo pipefail set -euo pipefail
# Make the current Git revision accessible at <site-root>/revision.txt # Make the current Git revision accessible at <site-root>/revision.txt
echo $SOURCE_VERSION > ui/revision.txt echo "$SOURCE_VERSION" > ui/revision.txt
# Create a `dist/` directory containing built/minified versions of the `ui/` assets. # Create a `dist/` directory containing built/minified versions of the `ui/` assets.
# Uses the node binaries/packages installed by the nodejs buildpack previously. # Uses the node binaries/packages installed by the nodejs buildpack previously.

Просмотреть файл

@ -4,7 +4,7 @@
set -euo pipefail set -euo pipefail
SRC_DIR=$(dirname "$(dirname "${BASH_SOURCE[0]}")") SRC_DIR=$(dirname "$(dirname "${BASH_SOURCE[0]}")")
cd $SRC_DIR cd "$SRC_DIR"
source /etc/profile.d/treeherder.sh source /etc/profile.d/treeherder.sh

Просмотреть файл

@ -4,7 +4,7 @@
set -euo pipefail set -euo pipefail
SRC_DIR=$(dirname "$(dirname "${BASH_SOURCE[0]}")") SRC_DIR=$(dirname "$(dirname "${BASH_SOURCE[0]}")")
cd $SRC_DIR cd "$SRC_DIR"
source /etc/profile.d/treeherder.sh source /etc/profile.d/treeherder.sh

Просмотреть файл

@ -4,7 +4,7 @@
set -euo pipefail set -euo pipefail
SRC_DIR=$(dirname "$(dirname "${BASH_SOURCE[0]}")") SRC_DIR=$(dirname "$(dirname "${BASH_SOURCE[0]}")")
cd $SRC_DIR cd "$SRC_DIR"
source /etc/profile.d/treeherder.sh source /etc/profile.d/treeherder.sh

Просмотреть файл

@ -4,7 +4,7 @@
set -euo pipefail set -euo pipefail
SRC_DIR=$(dirname "$(dirname "${BASH_SOURCE[0]}")") SRC_DIR=$(dirname "$(dirname "${BASH_SOURCE[0]}")")
cd $SRC_DIR cd "$SRC_DIR"
source /etc/profile.d/treeherder.sh source /etc/profile.d/treeherder.sh

Просмотреть файл

@ -4,7 +4,7 @@
set -euo pipefail set -euo pipefail
SRC_DIR=$(dirname "$(dirname "${BASH_SOURCE[0]}")") SRC_DIR=$(dirname "$(dirname "${BASH_SOURCE[0]}")")
cd $SRC_DIR cd "$SRC_DIR"
source /etc/profile.d/treeherder.sh source /etc/profile.d/treeherder.sh

Просмотреть файл

@ -4,7 +4,7 @@
set -euo pipefail set -euo pipefail
SRC_DIR=$(dirname "$(dirname "${BASH_SOURCE[0]}")") SRC_DIR=$(dirname "$(dirname "${BASH_SOURCE[0]}")")
cd $SRC_DIR cd "$SRC_DIR"
source /etc/profile.d/treeherder.sh source /etc/profile.d/treeherder.sh

Просмотреть файл

@ -4,7 +4,7 @@
set -euo pipefail set -euo pipefail
SRC_DIR=$(dirname "$(dirname "${BASH_SOURCE[0]}")") SRC_DIR=$(dirname "$(dirname "${BASH_SOURCE[0]}")")
cd $SRC_DIR cd "$SRC_DIR"
source /etc/profile.d/treeherder.sh source /etc/profile.d/treeherder.sh

Просмотреть файл

@ -4,7 +4,7 @@
set -euo pipefail set -euo pipefail
SRC_DIR=$(dirname "$(dirname "${BASH_SOURCE[0]}")") SRC_DIR=$(dirname "$(dirname "${BASH_SOURCE[0]}")")
cd $SRC_DIR cd "$SRC_DIR"
source /etc/profile.d/treeherder.sh source /etc/profile.d/treeherder.sh

Просмотреть файл

@ -4,7 +4,7 @@
set -euo pipefail set -euo pipefail
SRC_DIR=$(dirname "$(dirname "${BASH_SOURCE[0]}")") SRC_DIR=$(dirname "$(dirname "${BASH_SOURCE[0]}")")
cd $SRC_DIR cd "$SRC_DIR"
source /etc/profile.d/treeherder.sh source /etc/profile.d/treeherder.sh

Просмотреть файл

@ -83,7 +83,7 @@ if ! cmp -s vagrant/mysql.cnf /etc/mysql/conf.d/treeherder.cnf; then
sudo systemctl restart mysql.service sudo systemctl restart mysql.service
fi fi
if [[ "$($PYTHON_DIR/bin/python --version 2>&1)" != *"$PYTHON_VERSION" ]]; then if [[ "$("${PYTHON_DIR}/bin/python" --version 2>&1)" != *"$PYTHON_VERSION" ]]; then
echo "-----> Installing Python" echo "-----> Installing Python"
rm -rf "$PYTHON_DIR" rm -rf "$PYTHON_DIR"
mkdir -p "$PYTHON_DIR" mkdir -p "$PYTHON_DIR"
@ -91,7 +91,7 @@ if [[ "$($PYTHON_DIR/bin/python --version 2>&1)" != *"$PYTHON_VERSION" ]]; then
curl -sSf "https://lang-python.s3.amazonaws.com/heroku-16/runtimes/python-$PYTHON_VERSION.tar.gz" | tar -xz -C "$PYTHON_DIR" curl -sSf "https://lang-python.s3.amazonaws.com/heroku-16/runtimes/python-$PYTHON_VERSION.tar.gz" | tar -xz -C "$PYTHON_DIR"
fi fi
if [[ "$($PYTHON_DIR/bin/pip --version 2>&1)" != *"$PIP_VERSION"* ]]; then if [[ "$("${PYTHON_DIR}/bin/pip" --version 2>&1)" != *"$PIP_VERSION"* ]]; then
echo "-----> Installing pip" echo "-----> Installing pip"
curl -sSf https://bootstrap.pypa.io/get-pip.py | python - "pip==$PIP_VERSION" curl -sSf https://bootstrap.pypa.io/get-pip.py | python - "pip==$PIP_VERSION"
fi fi