aboutsummaryrefslogtreecommitdiff
path: root/libs/tool
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 /libs/tool
parent458f8d3621c95d02cd0335a3fff11bb94a34c14f (diff)
parentb6b87eae55b7743ccfa3d6523794767c8d9186a0 (diff)
downloadlibrebootfr-96b3a3f8c9dd059318f49e2ce147d966487600f4.tar.gz
librebootfr-96b3a3f8c9dd059318f49e2ce147d966487600f4.zip
Merge branch 'braces-braces-braces' of kragle/libreboot into master
Diffstat (limited to 'libs/tool')
-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
}