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 d7bf8e06a08bc436316e5416c0eebab0398a53aa.
This commit is contained in:
parent
e2e356a65f
commit
47dae4b67d
@ -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…
x
Reference in New Issue
Block a user