Allow sudo when removing packages

This commit is contained in:
lyxell
2016-04-28 00:14:46 +02:00
parent 15e0d3f077
commit db07c76a4b

2
crew
View File

@@ -22,7 +22,7 @@ $LOAD_PATH.unshift "#{CREW_LIB_PATH}lib"
USER = `whoami`.chomp
#disallow sudo
abort "Chromebrew should not be run as root." if Process.uid == 0
abort "Chromebrew should not be run as root." if Process.uid == 0 && @command != "remove"
@device = JSON.parse(File.read(CREW_CONFIG_PATH + 'device.json'), symbolize_names: true)
#symbolize also values