We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
command -v
which
1 parent df84a6b commit bae238dCopy full SHA for bae238d
bin/test-php-watch.sh
@@ -1,7 +1,7 @@
1
#!/bin/bash
2
3
# Check for the fswatch command
4
-if ! which fswatch >/dev/null 2>&1; then
+if ! command -v fswatch >/dev/null 2>&1; then
5
echo "Error: The fswatch command is not available."
6
echo "On macOS, you can install it with Homebrew: brew install fswatch"
7
exit 1
0 commit comments