mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-11-26 18:33:03 +01:00
Replace command with direct shopify call for theme list
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
419fc5e9b5
commit
e2be8df511
1 file changed
+1
-2
@@ -44,8 +44,7 @@ _shopify_themes() {
|
|||||||
if (( $#fresh )); then
|
if (( $#fresh )); then
|
||||||
themes=("${(@f)$(< "$cache_file")}")
|
themes=("${(@f)$(< "$cache_file")}")
|
||||||
else
|
else
|
||||||
json="$(command shopify theme list --json 2>/dev/null)" || return 1
|
json="$(shopify theme list --json 2>/dev/null)" || return 1
|
||||||
# One chunk per object, in zsh, so there is no dependency on jq.
|
|
||||||
split="${json//\{/$nl}"
|
split="${json//\{/$nl}"
|
||||||
for entry in ${(f)split}; do
|
for entry in ${(f)split}; do
|
||||||
id="" name="" role=""
|
id="" name="" role=""
|
||||||
|
|||||||
Reference in new issue
Block a user