sleepwatcher: use `Dir.home` over `ENV["HOME"]`

master
Bo Anderson 2022-06-16 02:50:23 +01:00 committed by FX Coudert
parent b552b91563
commit 1676fcbb9c
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class Sleepwatcher < Formula
end end
service do service do
run [opt_sbin/"sleepwatcher", "-V", "-s", "#{ENV["HOME"]}/.sleep", "-w", "#{ENV["HOME"]}/.wakeup"] run [opt_sbin/"sleepwatcher", "-V", "-s", "#{Dir.home}/.sleep", "-w", "#{Dir.home}/.wakeup"]
run_type :immediate run_type :immediate
keep_alive true keep_alive true
end end