aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2017-09-20 22:28:44 -0400
committerAndrew Robbins <contact@andrewrobbins.info>2017-09-21 13:26:11 -0400
commitd0577f0ab582ec32a792dc0da3b5cbe286f6f8fb (patch)
treea88a08d78c66e4eb7699b636b516591f2003b1f0
parent49714324914b7257051c128b82277b6576b1d1c5 (diff)
downloadlibrebootfr-d0577f0ab582ec32a792dc0da3b5cbe286f6f8fb.tar.gz
librebootfr-d0577f0ab582ec32a792dc0da3b5cbe286f6f8fb.zip
Remove braces from parameter expansions
* libs/tool ditto
-rwxr-xr-xlibs/tool16
1 files changed, 8 insertions, 8 deletions
diff --git a/libs/tool b/libs/tool
index 8fa154ef..8ed70e18 100755
--- a/libs/tool
+++ b/libs/tool
@@ -46,9 +46,9 @@ tool_helper_include() {
tool_check() {
local tool="${1##*/}"
- local tool_path="$(tool_path "${tool}")"
+ local tool_path="$(tool_path "$tool")"
- if ! [[ -f "${tool_path}/${tool}" ]]; then
+ if ! [[ -f "$tool_path/$tool" ]]; then
return 1
fi
}
@@ -204,18 +204,18 @@ tool_arguments_targets() {
local tool="$1"
shift
- local tool_path="$(tool_path "${tool}")"
- local targets_path="${tool_path}/${CONFIGS}"
+ local tool_path="$(tool_path "$tool")"
+ local targets_path="$tool_path/$CONFIGS"
local argument
for argument in "$@"; do
- targets_path="${targets_path}/${argument}"
+ targets_path="$targets_path/$argument"
done
- targets_path="${targets_path}/${TARGETS}"
+ targets_path="$targets_path/$TARGETS"
- if [[ -f "${targets_path}" ]]; then
- cat "${targets_path}"
+ if [[ -f "$targets_path" ]]; then
+ cat "$targets_path"
fi
}