shutils/pkgtarget: don't spam stderr with expected rm errors
Since the first `rm -rf` command is allowed/expected to fail, hide its
output. This was missed with the initial optimization in
d7bf8e06a0
.
This commit is contained in:
parent
e2e356a65f
commit
47dae4b67d
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ remove_pkg_autodeps() {
|
||||||
remove_pkg_wrksrc() {
|
remove_pkg_wrksrc() {
|
||||||
if [ -d "$wrksrc" ]; then
|
if [ -d "$wrksrc" ]; then
|
||||||
msg_normal "$pkgver: cleaning build directory...\n"
|
msg_normal "$pkgver: cleaning build directory...\n"
|
||||||
rm -rf "$wrksrc" || chmod -R +wX "$wrksrc" # Needed to delete Go Modules
|
rm -rf "$wrksrc" 2>/dev/null || chmod -R +wX "$wrksrc" # Needed to delete Go Modules
|
||||||
rm -rf "$wrksrc"
|
rm -rf "$wrksrc"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue