command if exists

    0

    2

    lucycodes42

    Shell public recipes

    Shortcut: if.command.exists

    if [ "\$(command -v command)" ]; then
      ${2:echo "command \"command\" exists on system"}
    fi
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.