Skip to content

Commit

Permalink
fixing broken parameter validation
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwittig committed May 10, 2016
1 parent f41831d commit 92a3dd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git-secrets
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,9 @@ done

# Ensure that recursive is not applied with mutually exclusive options.
if [ "${RECURSIVE}" -eq 1 ]; then
if [ "${SCAN_CACHED}" ] \
|| [ "${SCAN_NO_INDEX}" ] \
|| [ "${SCAN_UNTRACKED}" ];
if [ "${SCAN_CACHED}" -eq 1 ] \
|| [ "${SCAN_NO_INDEX}" -eq 1 ] \
|| [ "${SCAN_UNTRACKED}" -eq 1 ];
then
die "-r|--recursive cannot be supplied with --cached, --no-index, or --untracked"
fi
Expand Down

0 comments on commit 92a3dd7

Please sign in to comment.