Skip to content

Commit

Permalink
Add check for specifying -L multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
gliargovas committed Nov 15, 2023
1 parent 2642999 commit d468590
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion try
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,11 @@ do
fi
SANDBOX_DIR="$OPTARG"
NO_COMMIT="quiet";;
(L) LOWER_DIRS="$OPTARG"
(L) if [ -n "$LOWER_DIRS" ]; then
error "the -L option has been specified multiple times." 2
exit 1
fi
LOWER_DIRS="$OPTARG"
NO_COMMIT="quiet";;
(v) echo "$TRY_COMMAND version $TRY_VERSION" >&2
exit 0;;
Expand Down

0 comments on commit d468590

Please sign in to comment.