Skip to content

Commit

Permalink
test: run_test_3: drop use of which
Browse files Browse the repository at this point in the history
`which` is non-portable (not part of POSIX) and distributions like Debian and
Gentoo are looking to remove it from their base set of packages.

Switch to `type -P` instead given `test/bin/run_test_3` already has a Bash
shebang.

Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Jan 14, 2024
1 parent ff63369 commit de3e9d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/bin/run_test_3
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ set_source_and_build_dirs || panic "cannot set source and build directories"

#$CMDDIR/rundectests jasper || exit 1

oj_compress=$(which opj2_compress) || oj_compress=""
oj_decompress=$(which opj2_decompress) || oj_decompress=""
oj_compress=$(type -P opj2_compress) || oj_compress=""
oj_decompress=$(type -P opj2_decompress) || oj_decompress=""

run_test="$cmd_dir/run_codec_test"

Expand Down

0 comments on commit de3e9d4

Please sign in to comment.