aboutsummaryrefslogtreecommitdiff
path: root/tools/dependencies/dependencies-helper
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2017-09-20 22:33:02 -0400
committerAndrew Robbins <contact@andrewrobbins.info>2017-09-21 13:26:12 -0400
commit7851c7656b66afd78cfb1c6b784b0cf89e350872 (patch)
treee9bb75e48ae1345873d886c9931fbddc2e9ecb5e /tools/dependencies/dependencies-helper
parentd0577f0ab582ec32a792dc0da3b5cbe286f6f8fb (diff)
downloadlibrebootfr-7851c7656b66afd78cfb1c6b784b0cf89e350872.tar.gz
librebootfr-7851c7656b66afd78cfb1c6b784b0cf89e350872.zip
Remove braces from parameter expansions
* tools/dependencies/dependencies * tools/dependencies/dependencies-helper ditto
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