|
111 | 111 | <key>runningsubtext</key>
|
112 | 112 | <string>Loading...</string>
|
113 | 113 | <key>script</key>
|
114 |
| - <string>if [ -f "/opt/homebrew/bin/php" ]; then |
| 114 | + <string>if [ -x "/opt/homebrew/bin/php" ]; then |
115 | 115 | /opt/homebrew/bin/php loremipsum.php "words" "{query}"
|
116 |
| -elif [ -f "/usr/local/bin/php" ]; then |
| 116 | +elif [ -x "/usr/local/bin/php" ]; then |
117 | 117 | /usr/local/bin/php loremipsum.php "words" "{query}"
|
118 |
| -elif [ -f "/usr/bin/php" ]; then |
| 118 | +elif [ -x "/usr/bin/php" ]; then |
119 | 119 | /usr/bin/php loremipsum.php "words" "{query}"
|
120 |
| -elif [ -f "$(which php)" ]; then |
| 120 | +elif [ -x "$(which php)" ]; then |
121 | 121 | $(which php) loremipsum.php "words" "{query}"
|
122 | 122 | else
|
123 | 123 | php loremipsum.php "words" "{query}"
|
@@ -189,13 +189,13 @@ fi</string>
|
189 | 189 | <key>runningsubtext</key>
|
190 | 190 | <string>Loading...</string>
|
191 | 191 | <key>script</key>
|
192 |
| - <string>if [ -f "/opt/homebrew/bin/php" ]; then |
| 192 | + <string>if [ -x "/opt/homebrew/bin/php" ]; then |
193 | 193 | /opt/homebrew/bin/php loremipsum.php "sentences" "{query}"
|
194 |
| -elif [ -f "/usr/local/bin/php" ]; then |
| 194 | +elif [ -x "/usr/local/bin/php" ]; then |
195 | 195 | /usr/local/bin/php loremipsum.php "sentences" "{query}"
|
196 |
| -elif [ -f "/usr/bin/php" ]; then |
| 196 | +elif [ -x "/usr/bin/php" ]; then |
197 | 197 | /usr/bin/php loremipsum.php "sentences" "{query}"
|
198 |
| -elif [ -f "$(which php)" ]; then |
| 198 | +elif [ -x "$(which php)" ]; then |
199 | 199 | $(which php) loremipsum.php "sentences" "{query}"
|
200 | 200 | else
|
201 | 201 | php loremipsum.php "sentences" "{query}"
|
@@ -277,13 +277,13 @@ fi</string>
|
277 | 277 | <key>runningsubtext</key>
|
278 | 278 | <string>Loading...</string>
|
279 | 279 | <key>script</key>
|
280 |
| - <string>if [ -f "/opt/homebrew/bin/php" ]; then |
| 280 | + <string>if [ -x "/opt/homebrew/bin/php" ]; then |
281 | 281 | /opt/homebrew/bin/php loremipsum.php "paragraphs" "{query}"
|
282 |
| -elif [ -f "/usr/local/bin/php" ]; then |
| 282 | +elif [ -x "/usr/local/bin/php" ]; then |
283 | 283 | /usr/local/bin/php loremipsum.php "paragraphs" "{query}"
|
284 |
| -elif [ -f "/usr/bin/php" ]; then |
| 284 | +elif [ -x "/usr/bin/php" ]; then |
285 | 285 | /usr/bin/php loremipsum.php "paragraphs" "{query}"
|
286 |
| -elif [ -f "$(which php)" ]; then |
| 286 | +elif [ -x "$(which php)" ]; then |
287 | 287 | $(which php) loremipsum.php "paragraphs" "{query}"
|
288 | 288 | else
|
289 | 289 | php loremipsum.php "paragraphs" "{query}"
|
@@ -367,7 +367,7 @@ Instead of typing you may of course use Alfred's hotkeys to navigate faster.</st
|
367 | 367 | <key>variablesdontexport</key>
|
368 | 368 | <array/>
|
369 | 369 | <key>version</key>
|
370 |
| - <string>0.2.1</string> |
| 370 | + <string>0.2.2</string> |
371 | 371 | <key>webaddress</key>
|
372 | 372 | <string>https://till.im</string>
|
373 | 373 | </dict>
|
|
0 commit comments