diff --git a/node-print/APKBUILD b/node-print/APKBUILD index 757eb01..c43a23f 100644 --- a/node-print/APKBUILD +++ b/node-print/APKBUILD @@ -19,9 +19,10 @@ check() { node --experimental-test-coverage --test > output.txt # ensure coverage - local cov_lines="$(grep -F index.js output.txt | cut -d' ' -f4 | cut -d. -f1)" + local results="$(grep -F index.js output.txt)" + local cov_lines="$(echo $results | cut -d' ' -f4 | cut -d. -f1)" [ "$cov_lines" -gt 90 ] - local cov_branches="$(grep -F index.js output.txt | cut -d' ' -f6 | cut -d. -f1)" + local cov_branches="$(echo $results | cut -d' ' -f6 | cut -d. -f1)" [ "$cov_branches" -gt 90 ] }