freebsd-ports/audio/libmysofa/files/patch-tests_compare.sh
Jason E. Hale a856b7b47e audio/libmysofa: Update to latest commit to address CVE-2021-3756
PR:		261945
Reported by:	diizzy
MFH:		2022Q1
Security:	4d763c65-9246-11ec-9aa3-4ccc6adda413
2022-02-20 08:18:29 -05:00

13 lines
425 B
Bash

Undo bashism added upstream in a5a3562. The built-in 'command' command of
sh(1) does not take multiple arguments.
--- tests/compare.sh.orig 2022-02-14 10:05:41 UTC
+++ tests/compare.sh
@@ -1,7 +1,7 @@
#!/bin/sh
SCRIPTDIR=${0%/*}
-NODEJS=$(command -v node nodejs false | head -1)
+NODEJS=$(which node nodejs false | head -1)
${MYSOFA2JSON:-${SCRIPTDIR}/../build/src/mysofa2json} -c -s "$1".sofa >tmp1.json 2>tmp1.txt