Skip to content

ping -w does not work on recent MacOS #1

@hasnolen

Description

@hasnolen

There's no -w flag on MacOS macOS 13.0 22A380 arm6, so it was breaking. I had to make this change:

diff --git a/rugmi b/rugmi
index 93af56b..46428bd 100755
@@ -253,7 +253,7 @@ print_link() {
 
 # Ping imgur.
 ping_imgur() {
-    ping -c1 -w2 imgur.com >/dev/null 2>&1
+    ping -c1 imgur.com >/dev/null 2>&1
 }
 
 # Check if the requested link type is valid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions