Skip to content

Commit

Permalink
Fix: endswith() implementation actually was a startswith() implementa…
Browse files Browse the repository at this point in the history
…tion.
  • Loading branch information
nvie committed Feb 22, 2010
1 parent f9ebb07 commit e0d8af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitflow-common
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ max() { [ "$1" -ge "$2" ] && echo "$1" || echo "$2"; }

# 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 ]; }
Expand Down

0 comments on commit e0d8af3

Please sign in to comment.