From: Ian Lance Taylor Date: Fri, 19 Apr 2019 16:48:36 +0000 (-0700) Subject: bootstrap.bash: make source writable before cleaning X-Git-Tag: go1.13beta1~628 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4a119141303407d9223296e9092611560665d3e1;p=gostls13.git 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 Reviewed-by: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- 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