Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Detect Docker robustly #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Sep 12, 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 <[email protected]>
    a4lg committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    4d3a183 View commit details
    Browse the repository at this point in the history