Skip to content
This repository was archived by the owner on Apr 17, 2026. It is now read-only.
This repository was archived by the owner on Apr 17, 2026. It is now read-only.

Check if depencies are installed #1

@Geronymos

Description

@Geronymos

Problem

The porgramm breaks if git or highlight are not installed.

highlight also has different versions on different distros, so not all arguments work for all distros (for example highlight --syntax-by-name="$filename" ).

Solution

which highlight || exit
# or better
... | (highlight -... || cat) | ...

The first one just exists the programm and might print an error message. The second one tries to skip the program.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions