From db07c76a4b9a56fcedff2bc1ee514f8cd3d4744f Mon Sep 17 00:00:00 2001 From: lyxell Date: Thu, 28 Apr 2016 00:14:46 +0200 Subject: [PATCH] Allow sudo when removing packages --- crew | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crew b/crew index 8f6a7be3bc..7d2461d875 100755 --- a/crew +++ b/crew @@ -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