Restore -detached argument detection in rabbitmq-server (backport #15036) (backport #15037)
#15038
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Commit 68c3055 removed the code that detected the
-detachedcommand-line argument and set thedetachedvariable. However, the conditional check for$detachedremained, along with a comment referencing "the code above" that no longer exists. This left orphaned code that could never execute its intended branch.This change restores the argument detection loop that sets
detachedto"true"when-detachedis found in the command-line arguments. The loop uses POSIX-compliant syntax to iterate through all positional parameters and check for the-detachedflag.Additionally, this change replaces the deprecated
-ooperator with||in the conditional test, following POSIX best practices for boolean OR operations in shell scripts.This is an automatic backport of pull request #15036 done by Mergify.
This is an automatic backport of pull request #15037 done by Mergify.