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.