Skip to content

Commit bae238d

Browse files
Use command -v instead of which for better POSIX compatibility
Co-authored-by: Weston Ruter <[email protected]> Signed-off-by: Shyamsundar Gadde <[email protected]>
1 parent df84a6b commit bae238d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/test-php-watch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Check for the fswatch command
4-
if ! which fswatch >/dev/null 2>&1; then
4+
if ! command -v fswatch >/dev/null 2>&1; then
55
echo "Error: The fswatch command is not available."
66
echo "On macOS, you can install it with Homebrew: brew install fswatch"
77
exit 1

0 commit comments

Comments
 (0)