Commit 64748405 authored by Yan Couto's avatar Yan Couto Committed by Kazushi (Jam) Marukawa

Failing ASAP

Sudo check is done as early in the code as possible.
parent 72d807aa
#!/usr/bin/env ruby
require_relative 'lib/color'
# Disallow sudo
abort "Chromebrew should not be run as root.".lightred if Process.uid == 0
require 'find'
require 'net/http'
require 'uri'
require 'digest/sha2'
require 'json'
require 'fileutils'
require_relative 'lib/color'
require_relative 'lib/const'
# Add lib to LOAD_PATH
......@@ -33,9 +37,6 @@ Usage:
version 0.4.3
DOCOPT
# Disallow sudo
abort "Chromebrew should not be run as root.".lightred if Process.uid == 0
# Parse arguments using docopt
require_relative 'lib/docopt'
begin
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment