From d0577f0ab582ec32a792dc0da3b5cbe286f6f8fb Mon Sep 17 00:00:00 2001 From: Andrew Robbins Date: Wed, 20 Sep 2017 22:28:44 -0400 Subject: Remove braces from parameter expansions * libs/tool ditto --- libs/tool | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'libs/tool') 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 } -- cgit v1.2.3-70-g09d2