diff options
author | Kevin Daudt <me@ikke.info> | 2019-03-03 19:15:00 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-04-29 19:26:43 +0000 |
commit | 2e77e3390f4fc4cec14d753d6f1cdee334f1c2c2 (patch) | |
tree | c08c37e04320147921c54a2d891ecf25557af0df | |
parent | 1d854182dd68a01d6b65cedd860e31bf58af73f4 (diff) | |
download | abuild-2e77e3390f4fc4cec14d753d6f1cdee334f1c2c2.tar.gz abuild-2e77e3390f4fc4cec14d753d6f1cdee334f1c2c2.tar.bz2 abuild-2e77e3390f4fc4cec14d753d6f1cdee334f1c2c2.tar.xz abuild-2e77e3390f4fc4cec14d753d6f1cdee334f1c2c2.zip |
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.
-rw-r--r-- | abuild.in | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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" } |