diff options
Diffstat (limited to 'src/clean.bash')
-rwxr-xr-x | src/clean.bash | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/clean.bash b/src/clean.bash index db4cf4010..53fddd6c2 100755 --- a/src/clean.bash +++ b/src/clean.bash @@ -20,7 +20,9 @@ fi GOBIN="${GOBIN:-$HOME/bin}" -rm -rf "$GOROOT"/pkg/${GOOS}_$GOARCH +if [ "$1" != "--nopkg" ]; then + rm -rf "$GOROOT"/pkg/${GOOS}_$GOARCH +fi rm -f "$GOROOT"/lib/*.a for i in lib9 libbio libcgo libmach cmd pkg \ ../misc/cgo/gmp ../misc/cgo/stdio \ |