Verified Commit 92d7391d authored by Max Rees's avatar Max Rees
Browse files

abuild: use command(1) portably

According to POSIX, the "command -v" form of command(1) accepts only a
single argument (command_name). Some shells will check additional
arguments, but not dash.
parent 7e891ec6
......@@ -1465,7 +1465,7 @@ human_size() {
create_apks() {
local file= dir= name= ver= apk= datadir= size=
local gzip=$(command -v pigz gzip | head -1)
local gzip=$(command -v pigz || echo gzip)
getpkgver || return 1
if ! options_has "!tracedeps"; then
for file in "$pkgbasedir"/.control.*/.PKGINFO; do
......@@ -1598,7 +1598,7 @@ check() {
# predefined splitfunc doc
default_doc() {
local gzip=$(command -v pigz gzip | head -1)
local gzip=$(command -v pigz || echo gzip)
depends="$depends_doc"
pkgdesc="$pkgdesc (documentation)"
install_if="docs $pkgname=$pkgver-r$pkgrel"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment