Skip to content

Commit 300c504

Browse files
ThavarshanCopilot
andauthored
Update phpvm.sh
Co-authored-by: Copilot <[email protected]>
1 parent 74db7c2 commit 300c504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpvm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ use_php_version() {
247247
if [ -d "$HOMEBREW_PREFIX/Cellar/php@$version" ]; then
248248
phpvm_debug "Linking PHP $version..."
249249
link_output=$(brew link php@"$version" --force --overwrite 2>&1)
250-
if echo "$link_output" | grep -q "Already linked"; then
250+
if echo "$link_output" | grep -iq "Already linked"; then
251251
phpvm_warn "Homebrew reports PHP $version is already linked. To relink, run: brew unlink php@${version} && brew link --force php@${version}"
252252
phpvm_warn "Switch NOT completed. Please relink manually."
253253
return 1

0 commit comments

Comments
 (0)