Skip to content

Commit 8a24baf

Browse files
authored
Prefer [ p ] && [ q ] as [ p -a q ] is not well-defined
See https://github.com/koalaman/shellcheck/wiki/SC2166 for details
1 parent 951e6f1 commit 8a24baf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rector-single-commit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# - rector (in vendor/bin or RECTOR_PATH)
77
set -e
88

9-
if [ "$1" = "-h" -o "$1" = "--help" ]; then
9+
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
1010
echo "rector-single-commit.sh [commit message prefix]"
1111
echo "Options:"
1212
echo " -h, --help: Show help"

0 commit comments

Comments
 (0)