mirror of
https://github.com/unpoller/unpoller.git
synced 2026-03-31 06:24:19 -04:00
Fix Homebrew formula for newer Homebrew versions
Updated the install section in the brews configuration to use the new Homebrew formula syntax for directory creation. Changes: - Changed `etc.mkdir "unpoller"` to `(etc/"unpoller").mkpath` The old syntax was causing errors with newer Homebrew versions: TypeError: no implicit conversion of String into Integer This fix ensures compatibility with Homebrew 4.3+ while maintaining backward compatibility with older versions. Fixes #742 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -547,7 +547,7 @@ brews:
|
|||||||
assert_match "unpoller v#{version}", shell_output("#{bin}/unpoller -v 2>&1", 2)
|
assert_match "unpoller v#{version}", shell_output("#{bin}/unpoller -v 2>&1", 2)
|
||||||
install: |
|
install: |
|
||||||
bin.install "unpoller"
|
bin.install "unpoller"
|
||||||
etc.mkdir "unpoller"
|
(etc/"unpoller").mkpath
|
||||||
etc.install "examples/up.conf" => "unpoller/up.conf.example"
|
etc.install "examples/up.conf" => "unpoller/up.conf.example"
|
||||||
post_install: |
|
post_install: |
|
||||||
etc.install "examples/up.conf" => "unpoller/up.conf"
|
etc.install "examples/up.conf" => "unpoller/up.conf"
|
||||||
|
|||||||
Reference in New Issue
Block a user