We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c69b1c9 commit 8c4decfCopy full SHA for 8c4decf
1 file changed
shell/aliases
@@ -401,7 +401,7 @@ project_open() {
401
# Locate the first Composer theme. find (not a glob) so a project with no
402
# web/app/themes tree returns cleanly instead of tripping zsh NOMATCH now
403
# that non-WordPress projects can be resolved.
404
- THEME_PATH="$(find "${NEW_PATH}/web/app/themes" -mindepth 2 -maxdepth 2 -name composer.json 2>/dev/null | LC_ALL=C sort | head -n1)"
+ THEME_PATH="$(find "${NEW_PATH}/web/app/themes" -mindepth 2 -maxdepth 2 -type f -name composer.json 2>/dev/null | LC_ALL=C sort | head -n1)"
405
THEME_PATH="${THEME_PATH%composer.json}"
406
if [ -z "${THEME_PATH}" ]; then
407
echo "No theme available" >&2
0 commit comments