diff options
Diffstat (limited to 'libs')
-rwxr-xr-x | libs/git | 2 | ||||
-rwxr-xr-x | libs/project | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 } |