Skip to content

do not ANSI color --version, especially if output is not interactive TTY #275

@yarikoptic

Description

@yarikoptic

since I might use it in filename but

Image

and I end up with

$> bvv=$(bids-validator-deno --version | awk '{{print $2;}}'); mkdir derivatives/; bids-validator-deno --json -o derivatives/bids-validator-$bvv.json .

$> ls -l derivatives/
total 84
84 -rw-r--r-- 1 yarick jblab 84372 Oct  1 11:56 'bids-validator-'$'\033''[94m2.1.1'$'\033''[39m.json'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions