summaryrefslogtreecommitdiff
path: root/src/clean.bash
diff options
context:
space:
mode:
Diffstat (limited to 'src/clean.bash')
-rwxr-xr-xsrc/clean.bash4
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 \