Versioning

Fork/mirror of https://gitlab.com/depesz/Versioning
git clone https://ccx.te2000.cz/git/Versioning
Log | Files | Refs | README | LICENSE

commit f5ac10f95e0c959e8b41236feed1e4db0407d61d
parent b35a925bd9ad326acfe8fa52b9ab0dbc7611b098
Author: Hubert depesz Lubaczewski <depesz@depesz.com>
Date:   Sun, 22 Aug 2010 16:32:28 +0200

Fix typo resulting in wrong results in some cases.

Diffstat:
Mtools/list-dependencies-from-patches.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/list-dependencies-from-patches.sh b/tools/list-dependencies-from-patches.sh @@ -16,7 +16,7 @@ grep -hiE '^[[:space:]]*select _v.register_patch\(' "$@" | \ s/\].*//; @w = /\047([^\047]+)\047/g; } - pop @w, $ENV{"PATCH_NAME"} if 0 == ( scalar @w % 2 ); + push @w, $ENV{"PATCH_NAME"} if ( 0 == @w ) || ( 0 == ( @w % 2 ) ); printf "%s %s\n", $ENV{"PATCH_NAME"}, $_ for @w; ' done