]> Cypherpunks repositories - gostls13.git/commitdiff
bootstrap.bash: make source writable before cleaning
authorIan Lance Taylor <iant@golang.org>
Fri, 19 Apr 2019 16:48:36 +0000 (09:48 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 19 Apr 2019 17:04:30 +0000 (17:04 +0000)
Otherwise the "git clean" command fails with errors like
    rm: cannot remove '/home/iant/go-linux-ppc64-bootstrap/pkg/mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c/encoding/simplifiedchinese/all.go': Permission denied

Change-Id: Iecfb1fed6d59819d7fdceb9e391a2b3f81ea620c
Reviewed-on: https://go-review.googlesource.com/c/go/+/172998
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/bootstrap.bash

index bc9d4453459459237a4ca7b8ed947e4416e2721c..92a471828614569ec08ca821ff1f489378035205 100755 (executable)
@@ -49,6 +49,7 @@ cp -R "$src" "$targ"
 cd "$targ"
 echo
 echo "#### Cleaning $targ"
+chmod -R +w .
 rm -f .gitignore
 if [ -e .git ]; then
        git clean -f -d