diff options
-rwxr-xr-x | libs/tool | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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 } |