Skip to content

Commit bdf23c6

Browse files
committed
fix: Update options parsing
1 parent 62b2e61 commit bdf23c6

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Read more on [SemVer.org](http://semver.org).
7676

7777
[Conventional commits src]: https://conventionalcommits.org
7878
[Conventional commits badge]: https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg
79-
[Release img]: https://img.shields.io/badge/release-1.0.2-brightgreen.svg
79+
[Release img]: https://img.shields.io/badge/release-1.0.3-brightgreen.svg
8080
[Release src]: https://github.com/nafigator/php-qa-hooks
8181
[pre-commit img]: https://github.com/nafigator/git-hooks/raw/master/.images/pre-commit.jpg
8282
[License img]: https://img.shields.io/badge/license-MIT-brightgreen.svg

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Git hooks for PHP commits QA.",
44
"type": "library",
55
"license": "MIT",
6-
"version": "1.0.2",
6+
"version": "1.0.3",
77
"authors": [{
88
"name": "Yancharuk Alexander",
99
"role": "developer"

src/pre-commit.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ cd ${PROJECT_PATH}/vendor/nafigator
1717

1818
cd - >/dev/null
1919

20-
VERSION=1.0.2
20+
VERSION=1.0.3
2121
INTERACTIVE=$(git_config_bool check.php.colors ${PROJECT_PATH})
2222

23+
shift $((OPTIND-1))
24+
2325
parse_options ${@}
2426
PARSE_RESULT=$?
2527

src/pre-push.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ cd ${PROJECT_PATH}/vendor/nafigator
1515
. bash-helpers/src/bash-helpers.sh
1616
. php-qa-hooks/src/includes/pre-push.inc.sh
1717

18-
VERSION=1.0.2
18+
VERSION=1.0.3
1919
INTERACTIVE=$(git_config_bool check.php.colors ${PROJECT_PATH})
2020

2121
parse_options ${@}
2222
PARSE_RESULT=$?
2323

24+
shift $((OPTIND-1))
25+
2426
[[ ${PARSE_RESULT} = 1 ]] && exit 1
2527
[[ ${PARSE_RESULT} = 2 ]] && usage_help && exit 2
2628

0 commit comments

Comments
 (0)