Skip to content

Commit

Permalink
fix: avoid errors when the disabled key is absent or nil
Browse files Browse the repository at this point in the history
  • Loading branch information
akr4m authored Aug 25, 2024
1 parent 98a798b commit d9606ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/homestead.rb
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def self.configure(config, settings)
config.vm.provision "start #{enable_service}", type: "shell", inline: "sudo systemctl start #{enable_service}"
end if service.include?('enabled')

service['disabled'].each do |disable_service|
(service['disabled'] || []).each do |disable_service|
config.vm.provision "disable #{disable_service}", type: "shell", inline: "sudo systemctl disable #{disable_service}"
config.vm.provision "stop #{disable_service}", type: "shell", inline: "sudo systemctl stop #{disable_service}"
end if service.include?('disabled')
Expand Down

0 comments on commit d9606ef

Please sign in to comment.