Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: update_depot_tools

Issue 7016002: Early exit auto-update when running as root. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
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: update_depot_tools
diff --git a/update_depot_tools b/update_depot_tools
index a98e0ff8908ed3e7c98c1edb545683e20a45d96d..b4e6089bbfab471f5be4d10b7c656b0fbe7873c8 100755
--- a/update_depot_tools
+++ b/update_depot_tools
@@ -5,6 +5,12 @@
# This script will try to sync the bootstrap directories and then defer control.
+if [ "$USER" == "root" ];
+then
+ echo Running depot tools as root is sad.
+ exit
+fi
+
base_dir=$(dirname "$0")
if [ -L "$base_dir" ]
then
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698