We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb9cf8f commit 8c6bafcCopy full SHA for 8c6bafc
lib/autoupdate/start.rb
@@ -80,6 +80,7 @@ def start(interval:, args:)
80
script_path = Autoupdate::Core.location/"brew_autoupdate_leaves"
81
# Ensure the directory exists
82
FileUtils.mkpath(Autoupdate::Core.location)
83
+ script_path.unlink if script_path.exist? # Remove existing script if it exists to prevent error on recreation.
84
File.open(script_path, "w") { |f| f << temp_script }
85
FileUtils.chmod 0555, script_path
86
0 commit comments