[alfred] fix pi-hole workflow

pull/33/head
Alpha Chen 4 years ago
parent 33d1c37d86
commit 4abe3b40c7

@ -76,9 +76,9 @@
<key>script</key> <key>script</key>
<string>query=$1 <string>query=$1
curl -v "https://$PIHOLE_HOST/admin/api.php?disable=300&amp;auth=$API_TOKEN"</string> curl -v "https://$PIHOLE_HOST/admin/api.php?disable={query}&amp;auth=$API_TOKEN"</string>
<key>scriptargtype</key> <key>scriptargtype</key>
<integer>1</integer> <integer>0</integer>
<key>scriptfile</key> <key>scriptfile</key>
<string></string> <string></string>
<key>type</key> <key>type</key>
@ -103,7 +103,7 @@ curl -v "https://$PIHOLE_HOST/admin/api.php?disable=300&amp;auth=$API_TOKEN"</st
<key>items</key> <key>items</key>
<string>[{"title":"30 seconds","arg":"30"},{"title":"1 minute","arg":"60"},{"title":"5 minutes","arg":"120","subtitle":""}]</string> <string>[{"title":"30 seconds","arg":"30"},{"title":"1 minute","arg":"60"},{"title":"5 minutes","arg":"120","subtitle":""}]</string>
<key>keyword</key> <key>keyword</key>
<string>pihole</string> <string>ph</string>
<key>runningsubtext</key> <key>runningsubtext</key>
<string></string> <string></string>
<key>subtext</key> <key>subtext</key>

Loading…
Cancel
Save