Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect Docker robustly #14

Merged
merged 1 commit into from
Sep 12, 2023
Merged

Detect Docker robustly #14

merged 1 commit into from
Sep 12, 2023

Commits on Sep 8, 2023

  1. Detect Docker robustly

    "&> /dev/null" works as a redirection from stdout/stderr to /dev/null
    in Bash but not in POSIX shell (considered as an asynchronous execution
    and the result of the "command" command cannot be retrieved).
    
    As a result, it always assumes that Docker always exists.
    
    This commit makes the redirection robust and portable (makes it possible
    to detect "no Docker" condition correctly).
    
    Signed-off-by: Tsukasa OI <research_trasio@irq.a4lg.com>
    a4lg committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    26fbafb View commit details
    Browse the repository at this point in the history