Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(166)

Unified Diff: src/clean.bash

Issue 176056: code review 176056: Abort doing a clean when $GOROOT isn't set. (Closed)
Patch Set: code review 176056: Abort doing a clean when $GOROOT isn't set. Created 15 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/clean.bash
===================================================================
--- a/src/clean.bash
+++ b/src/clean.bash
@@ -3,6 +3,13 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
+set -e
+
+if [ -z "$GOROOT" ] ; then
+ echo '$GOROOT not set'
+ exit 1
+fi
+
rm -rf "$GOROOT"/pkg/${GOOS}_$GOARCH
rm -f "$GOROOT"/lib/*.a
for i in lib9 libbio libcgo libmach cmd pkg \
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b