aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rwxr-xr-xlibs/git2
-rwxr-xr-xlibs/project2
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/git b/libs/git
index 429d4783..2cde3dd3 100755
--- a/libs/git
+++ b/libs/git
@@ -312,7 +312,7 @@ git_project_patch_recursive() {
git_patch "$repository_path" "$branch" "$patch" || return 1
done
- if [[ $path != . ]]; then
+ if [[ -n $path && $path != . ]]; then
git_project_patch_recursive "$project" "$repository" "$branch" "$(dirname "$path")"
fi
}
diff --git a/libs/project b/libs/project
index 908f8942..34b139a5 100755
--- a/libs/project
+++ b/libs/project
@@ -587,7 +587,7 @@ project_sources_patch_recursive() {
diff_patch "$sources_path" "$patch" || return 1
done
- if [[ $path != . ]]; then
+ if [[ -n $path && $path != . ]]; then
project_sources_patch_recursive "$project" "$(dirname "$path")"
fi
}