dev-install: drop root check
The new C++ wrapper checks this for us.
BUG=chromium:935142
TEST=precq passes
Change-Id: I52775cd538881f165b1d49aa45fb16a92603033b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/1789858
Reviewed-by: Alex Klein <saklein@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
diff --git a/dev-install/dev_install b/dev-install/dev_install
index b5f64ac..e37b617 100755
--- a/dev-install/dev_install
+++ b/dev-install/dev_install
@@ -192,13 +192,6 @@
}
main() {
- # Check if we are root.
- if [ $(id -u) -ne 0 ]; then
- error "Can not run dev_install."
- error "You are not root or you did not use sudo."
- return 1
- fi
-
# Sanity check. People often run `su` or `sudo su` and leave off that final
# - which means they don't get a proper environment. Catch them here rather
# than fail randomly midway through the process.