diff options
author | Andrew Robbins <contact@andrewrobbins.info> | 2017-09-20 22:28:44 -0400 |
---|---|---|
committer | Andrew Robbins <contact@andrewrobbins.info> | 2017-09-21 13:26:11 -0400 |
commit | d0577f0ab582ec32a792dc0da3b5cbe286f6f8fb (patch) | |
tree | a88a08d78c66e4eb7699b636b516591f2003b1f0 /libs | |
parent | 49714324914b7257051c128b82277b6576b1d1c5 (diff) | |
download | librebootfr-d0577f0ab582ec32a792dc0da3b5cbe286f6f8fb.tar.gz librebootfr-d0577f0ab582ec32a792dc0da3b5cbe286f6f8fb.zip |
Remove braces from parameter expansions
* libs/tool
ditto
Diffstat (limited to 'libs')
-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 } |