commit | e0d8af3beccb5bc4a1b2ccc90bd6a4cc5c4fe210 | [log] [tgz] |
---|---|---|
author | Vincent Driessen <vincent@datafox.nl> | 周一 2月 22 12:21:36 2010 +0100 |
committer | Vincent Driessen <vincent@datafox.nl> | 周一 2月 22 12:21:59 2010 +0100 |
tree | c55754b32f235d2e5c3fddd04b617c82617585b4 | |
parent | f9ebb076ba287bea193258329d415cd7625cbffd [diff] [blame] |
Fix: endswith() implementation actually was a startswith() implementation.
diff --git a/gitflow-common b/gitflow-common index ad1de80..aa33700 100644 --- a/gitflow-common +++ b/gitflow-common
@@ -32,7 +32,7 @@ # basic string matching startswith() { [ "$1" != "${1#$2}" ]; } -endswith() { [ "$1" != "${1#$2}" ]; } +endswith() { [ "$1" != "${1%$2}" ]; } # convenience functions for checking shFlags flags flag() { local FLAG; eval FLAG='$FLAGS_'$1; [ $FLAG -eq $FLAGS_TRUE ]; }