aboutsummaryrefslogtreecommitdiff
path: root/tools/dependencies/dependencies-helper
diff options
context:
space:
mode:
authorLeah Rowe <info@minifree.org>2017-09-22 00:01:52 +0000
committerGogs <gogitservice@gmail.com>2017-09-22 00:01:52 +0000
commit96b3a3f8c9dd059318f49e2ce147d966487600f4 (patch)
tree2295a42b15a595693827acb983a7bd6886dc1528 /tools/dependencies/dependencies-helper
parent458f8d3621c95d02cd0335a3fff11bb94a34c14f (diff)
parentb6b87eae55b7743ccfa3d6523794767c8d9186a0 (diff)
downloadlibrebootfr-96b3a3f8c9dd059318f49e2ce147d966487600f4.tar.gz
librebootfr-96b3a3f8c9dd059318f49e2ce147d966487600f4.zip
Merge branch 'braces-braces-braces' of kragle/libreboot into master
Diffstat (limited to 'tools/dependencies/dependencies-helper')
-rwxr-xr-xtools/dependencies/dependencies-helper24
1 files changed, 12 insertions, 12 deletions
diff --git a/tools/dependencies/dependencies-helper b/tools/dependencies/dependencies-helper
index 36d2f3ea..9e02ad3c 100755
--- a/tools/dependencies/dependencies-helper
+++ b/tools/dependencies/dependencies-helper
@@ -19,7 +19,7 @@ dependencies_print() {
local distro="$1"
shift
- if [[ "${distro}" == 'parabola' ]]; then
+ if [[ "$distro" == 'parabola' ]]; then
printf '\n%s\n' 'Enable the multilib repository in /etc/pacman.conf'
printf '\n%s\n' 'Then, run the following command as root:'
printf '\n%s%s\n' 'pacman -S --needed ' "$*"
@@ -33,19 +33,19 @@ dependencies_host_supported() {
local distro="$1"
local arch="$2"
- dependencies_distro_supported "${distro}" || return
- dependencies_arch_supported "${distro}" "${arch}" || return
+ dependencies_distro_supported "$distro" || return
+ dependencies_arch_supported "$distro" "$arch" || return
}
dependencies_arch_supported() {
local distro="$1"
local arch="$2"
- local tool_path="$(tool_path "${tool}")"
- local distro_dir="${tool_path}/${CONFIGS}/${distro}"
+ local tool_path="$(tool_path "$tool")"
+ local distro_dir="$tool_path/$CONFIGS/$distro"
- if ! [[ -d "${distro_dir}/${arch}" ]]; then
- printf '\n%s\n' "Architecture \"${arch}\" is not supported" 1>&2
+ if ! [[ -d "$distro_dir/$arch" ]]; then
+ printf '\n%s\n' "Architecture \"$arch\" is not supported" 1>&2
return 1
fi
@@ -54,17 +54,17 @@ dependencies_arch_supported() {
dependencies_distro_supported() {
local distro="$1"
- local tool_path="$(tool_path "${tool}")"
- local targets_path="${tool_path}/${CONFIGS}/${TARGETS}"
+ local tool_path="$(tool_path "$tool")"
+ local targets_path="$tool_path/$CONFIGS/$TARGETS"
local -a targets_list
- mapfile -t targets_list < "${targets_path}"
+ mapfile -t targets_list < "$targets_path"
# Necessary to properly format the string for extglob use below
IFS='|' eval 'local distro_list="${targets_list[*]}"'
- if [[ "${distro}" != @(${distro_list}) ]]; then
- printf '\n%s' "Argument \"${distro}\" is not supported. " 1>&2
+ if [[ "$distro" != @($distro_list) ]]; then
+ printf '\n%s' "Argument \"$distro\" is not supported. " 1>&2
printf '%s\n' 'Check spelling?' 1>&2
usage