diff options
author | Andrew Robbins <contact@andrewrobbins.info> | 2017-09-20 22:16:17 -0400 |
---|---|---|
committer | Andrew Robbins <contact@andrewrobbins.info> | 2017-09-21 13:26:11 -0400 |
commit | ceb0a07b0c5084199f1b6f226ff175b73d6dd0ab (patch) | |
tree | 6d2c01fec6083c3b92d9bfbb966b0a2ec1a5852a | |
parent | bf61f4171cecda4ff20704874870033c8ecc6320 (diff) | |
download | librebootfr-ceb0a07b0c5084199f1b6f226ff175b73d6dd0ab.tar.gz librebootfr-ceb0a07b0c5084199f1b6f226ff175b73d6dd0ab.zip |
Remove braces from parameter expansions
* libs/git
ditto
-rwxr-xr-x | libs/git | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -205,7 +205,7 @@ git_files() { local repository_path="$1" ( - cd "${repository_path}" + cd "$repository_path" # Reproducible sorting. git ls-files -z | env LC_ALL='C.UTF-8' sort -z ) @@ -231,23 +231,23 @@ git_project_patch_recursive() { local branch="$3" local path="${4:-.}" - local repository_path="$(git_project_repository_path "${repository}")" - local project_path="$(project_path "${project}")" - local patches_path="${project_path}/${PATCHES}/${path}" + local repository_path="$(git_project_repository_path "$repository")" + local project_path="$(project_path "$project")" + local patches_path="$project_path/$PATCHES/$path" - if ! [[ -d "${patches_path}" ]]; then + if ! [[ -d "$patches_path" ]]; then return fi - if [[ "${path}" != "." ]]; then - git_project_patch_recursive "${project}" "${repository}" "${branch}" "$(dirname "${path}")" + if [[ "$path" != "." ]]; then + git_project_patch_recursive "$project" "$repository" "$branch" "$(dirname "$path")" fi - for patch in "${patches_path}"/[!.]*.@(patch|diff); do + for patch in "$patches_path"/[!.]*.@(patch|diff); do if [[ "${patch##*.}" == "patch" ]]; then - git_patch "${repository_path}" "${branch}" "${patch}" + git_patch "$repository_path" "$branch" "$patch" else - diff_patch_file "${repository_path}" "${patch}" + diff_patch_file "$repository_path" "$patch" fi done } |