Commit 2e77e339 authored by Kevin Daudt's avatar Kevin Daudt Committed by Natanael Copa
Browse files

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

This can easily be fixed by making everything writable before removing
the files.

Add the option 'chmod-clean' which does just that.
parent 1d854182
......@@ -77,6 +77,9 @@ want_check() {
default_cleanup_srcdir() {
if option_has options_has "chmod-clean" && test -d "$srcdir"; then
chmod -R +w "$srcdir"
rm -rf "$srcdir"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment