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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user