use $AR in second part of command too

This commit is contained in:
DubbleClick
2025-07-27 01:10:21 +07:00
parent 5b4cbbb669
commit 944cca709f
4 changed files with 5 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ trait libxslt
$this->patchLaDependencyPrefix();
$AR = getenv('AR') ?: 'ar';
shell()->cd(BUILD_LIB_PATH)
->exec("{$AR} -t libxslt.a | grep '\\.a$' | xargs -n1 ar d libxslt.a")
->exec("{$AR} -t libexslt.a | grep '\\.a$' | xargs -n1 ar d libexslt.a");
->exec("{$AR} -t libxslt.a | grep '\\.a$' | xargs -n1 {$AR} d libxslt.a")
->exec("{$AR} -t libexslt.a | grep '\\.a$' | xargs -n1 {$AR} d libexslt.a");
}
}