Skip to content

Conversation

fmartin-linagora
Copy link

No description provided.

WAITFORIT_QUIET=1
shift 1
;;
-d | --delay)
Copy link

@bartelemi bartelemi Sep 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code won't work if you provide --delay=X, where X is an integer. To align with how remaining arguments are parsed in this script, you need to split handling -d and --delay like this:

-d)
WAITFORIT_DELAY="$2"
shift 2
;;
--delay=*)
WAITFORIT_DELAY="${1#*=}"
shift 1
;;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants