diff options
-rwxr-xr-x | abuild.in | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -118,8 +118,11 @@ cleanup() { if [ -z "$install_after" ] && [ -n "$uninstall_after" ]; then msg "Uninstalling dependencies..." $SUDO_APK del --quiet $apk_opt_wait $uninstall_after - [ "$CBUILD" != "$CHOST" -a -n "$CBUILDROOT" ] && \ - $SUDO_APK del --root "$CBUILDROOT" --quiet $apk_opt_wait $uninstall_after + if [ "$CBUILD" != "$CHOST" -a -n "$CBUILDROOT" ]; then + $SUDO_APK del --root "$CBUILDROOT" \ + --quiet $apk_opt_wait \ + $uninstall_after + fi fi ;; esac |