diff --git a/tern/analyze/default/command_lib/base.yml b/tern/analyze/default/command_lib/base.yml index d0ceaf38..52d503e3 100644 --- a/tern/analyze/default/command_lib/base.yml +++ b/tern/analyze/default/command_lib/base.yml @@ -128,7 +128,7 @@ apk: container: # use double quotes when using awk - "pkgs=`apk info 2>/dev/null`" - - "for p in $pkgs; do lic=`apk info $p 2>/dev/null | head -1 | awk '{print $1}'`; echo $lic | awk -F \"${p}-\" '{print $2}'; done" + - "for p in $pkgs; do lic=`apk info $p 2>/dev/null | head -1 | awk '{print $1}'`; echo $lic | sed -e \"s/^$p-//\"; done" delimiter: "\n" licenses: invoke: