Skip to content

Commit

Permalink
Merge pull request #3 from blizzrdof77/master
Browse files Browse the repository at this point in the history
Added the pinged IP address to alfred notification output
  • Loading branch information
fniephaus authored Sep 14, 2019
2 parents 79095d6 + 3c0ed0f commit b83abe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ echo "DNS cache flushed"</string>
<key>escaping</key>
<integer>63</integer>
<key>script</key>
<string>ping -c 1 -t 6 {query} &amp;&gt; /dev/null &amp;&amp; echo "{query} is online." || echo "{query} is offline."</string>
<string>ping -c 1 -t 6 {query} &amp;&gt; /dev/null &amp;&amp; echo "{query} is online at $(ping -c1 {query} | sed -nE 's/^PING[^(]+\(([^)]+)\).*/\1/p')." || echo "{query} is offline."</string>
<key>type</key>
<integer>0</integer>
</dict>
Expand Down

0 comments on commit b83abe4

Please sign in to comment.