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

Detect Docker robustly #26

Merged
merged 1 commit into from
Oct 8, 2023
Merged

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 <research_trasio@irq.a4lg.com>
    a4lg committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    344178f View commit details
    Browse the repository at this point in the history