From 0bcac0d11fcb12f9eab8c5cb189da6388cdc52bd Mon Sep 17 00:00:00 2001 From: Robby Russell Date: Sat, 5 Sep 2026 15:36:19 -0700 Subject: [PATCH] Change package.json check from executable to readable Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- plugins/shopify/shopify.plugin.zsh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/shopify/shopify.plugin.zsh b/plugins/shopify/shopify.plugin.zsh index e3f225537..e90fdae7d 100644 --- a/plugins/shopify/shopify.plugin.zsh +++ b/plugins/shopify/shopify.plugin.zsh @@ -30,8 +30,7 @@ function _shopify_project_type() { while [[ -n "$dir" && "$dir" != "/" && "$dir" != "$HOME" ]]; do if [[ -x "$dir/node_modules/.bin/h2" ]] || - [[ -f "$dir/package.json" && "$(<"$dir/package.json")" == *'"@shopify/hydrogen"'* ]]; then - print -r -- hydrogen + [[ -r "$dir/package.json" && "$(<"$dir/package.json")" == *'"@shopify/hydrogen"'* ]]; then return 0 fi