From 2e77e3390f4fc4cec14d753d6f1cdee334f1c2c2 Mon Sep 17 00:00:00 2001 From: Kevin Daudt Date: Sun, 3 Mar 2019 19:15:00 +0100 Subject: abuild-clean: add option to make files writable before cleanup Some projects might leave files which are not writable for the current user. The cleanup process then fails and leaves files / directories behind. This can easily be fixed by making everything writable before removing the files. Add the option 'chmod-clean' which does just that. --- abuild.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/abuild.in b/abuild.in index dd43822..d0ae691 100644 --- a/abuild.in +++ b/abuild.in @@ -77,6 +77,9 @@ want_check() { } default_cleanup_srcdir() { + if option_has options_has "chmod-clean" && test -d "$srcdir"; then + chmod -R +w "$srcdir" + fi rm -rf "$srcdir" } -- cgit v1.2.3