1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00

SC2091: Remove surrounding $() to avoid executing output.

ShellCheck has detected that you have a command that just consists of a
command substitution.

This is typically done in order to try to get the shell to execute a
command, because $(..) does indeed execute commands. However, it's also
replaced by the output of that command.

PR:		227109
Submitted by:	mat
Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2018-06-01 16:20:42 +00:00
parent 267d5b45d4
commit 644b6c731d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=471270

View File

@ -657,7 +657,7 @@ proxydeps() {
if listcontains ${dep_file} "${already}"; then
continue
fi
if $(pkg which -q ${dep_file} > /dev/null 2>&1); then
if pkg which -q ${dep_file} > /dev/null 2>&1; then
dep_file_pkg=$(pkg which -qo ${dep_file})
# Check that the .so we need has a SONAME