diff options
author | Ian Lance Taylor <iant@golang.org> | 2019-04-19 09:48:36 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2019-04-19 17:04:30 +0000 |
commit | 4a119141303407d9223296e9092611560665d3e1 (patch) | |
tree | 3cce30900b25842b0b9db6776f5f0a6caaa0f4b9 /src/bootstrap.bash | |
parent | 4c236b9b097882f3aef8116e1ac9f65463bf6f01 (diff) | |
download | go-4a119141303407d9223296e9092611560665d3e1.tar.gz go-4a119141303407d9223296e9092611560665d3e1.zip |
bootstrap.bash: make source writable before cleaning
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>
Diffstat (limited to 'src/bootstrap.bash')
-rwxr-xr-x | src/bootstrap.bash | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bootstrap.bash b/src/bootstrap.bash index bc9d445345..92a4718286 100755 --- a/src/bootstrap.bash +++ b/src/bootstrap.bash @@ -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 |