aboutsummaryrefslogtreecommitdiff
path: root/libs/git
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2017-09-20 22:16:17 -0400
committerAndrew Robbins <contact@andrewrobbins.info>2017-09-21 13:26:11 -0400
commitceb0a07b0c5084199f1b6f226ff175b73d6dd0ab (patch)
tree6d2c01fec6083c3b92d9bfbb966b0a2ec1a5852a /libs/git
parentbf61f4171cecda4ff20704874870033c8ecc6320 (diff)
downloadlibrebootfr-ceb0a07b0c5084199f1b6f226ff175b73d6dd0ab.tar.gz
librebootfr-ceb0a07b0c5084199f1b6f226ff175b73d6dd0ab.zip
Remove braces from parameter expansions
* libs/git ditto
Diffstat (limited to 'libs/git')
-rwxr-xr-xlibs/git20
1 files changed, 10 insertions, 10 deletions
diff --git a/libs/git b/libs/git
index 550c5d60..decdfe01 100755
--- a/libs/git
+++ b/libs/git
@@ -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
}