Merge pull request #251 from porvak/feature/fix-nuke-flags
nuke script not using receipts or gitconfig flags
This commit is contained in:
commit
929ba27365
1 changed files with 7 additions and 5 deletions
12
script/nuke
12
script/nuke
|
@ -6,10 +6,12 @@ unless ENV["USER"] == "root"
|
|||
exec "sudo", $0, *ARGV
|
||||
end
|
||||
|
||||
all = false
|
||||
force = false
|
||||
opt = false
|
||||
services = false
|
||||
all = false
|
||||
force = false
|
||||
opt = false
|
||||
services = false
|
||||
receipts = false
|
||||
gitconfig = false
|
||||
|
||||
OptionParser.new do |o|
|
||||
o.banner = "Remove most traces of Boxen from your machine."
|
||||
|
@ -24,7 +26,7 @@ OptionParser.new do |o|
|
|||
|
||||
o.parse!
|
||||
|
||||
abort o.to_s unless all || opt || services
|
||||
abort o.to_s unless all || opt || services || receipts || gitconfig
|
||||
end
|
||||
|
||||
unless force
|
||||
|
|
Loading…
Reference in a new issue