summaryrefslogtreecommitdiffstats
path: root/git-amb
diff options
context:
space:
mode:
Diffstat (limited to 'git-amb')
-rwxr-xr-xgit-amb/git-amb.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-amb/git-amb.in b/git-amb/git-amb.in
index 0adceb6..d71f3c0 100755
--- a/git-amb/git-amb.in
+++ b/git-amb/git-amb.in
@@ -135,6 +135,7 @@ amb_printvars() {
amb_purge() {
echo "$self: Purging branch ${git_branch} build and install"
echo "$self: Purging $top_builddir..."
+ if test -d "$top_builddir"; then chmod -R u+w "$top_builddir"; fi
rm -rf "$top_builddir"
echo "$self: Purging $top_installdir..."
rm -rf "$top_installdir"
@@ -144,6 +145,7 @@ amb_purge() {
amb_purge_all() {
echo "$self: Purging ALL branches"
echo "$self: Purging $amb_builddir..."
+ if test -d "$amb_builddir"; then chmod -R u+w "$amb_builddir"; fi
rm -rf "$amb_builddir"
echo "$self: Purging $amb_installdir..."
rm -rf "$amb_installdir"