File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -464,12 +464,12 @@ jobs:
464464 if largest=$(find "${root}" -type d -name app 2>/dev/null | while read -r d; do du -sk "$d" 2>/dev/null; done | sort -n | tail -1); then
465465 app_dir=${largest#*[[:space:]]}
466466 fi
467- if [ -z "${app_dir}" ] || [ ! -d "${app_dir}/bin" ] || [ -z "$(ls -A "${app_dir}/bin" 2>/dev/null)" ]; then
467+ if [ -z "${app_dir}" ] || [ ! -d "${app_dir}/bin" ] || [ -z "$(find "${app_dir}/bin" -mindepth 1 -maxdepth 1 2>/dev/null | head -n 1 )" ]; then
468468 echo "::error::No Briefcase Linux app/ with a non-empty bin/ under ${root} (raw tar would lack the launcher). Listing app candidates:" >&2
469469 find "${root}" -type d -name app 2>/dev/null | while read -r d; do
470470 echo "--- $d" >&2
471471 du -sh "$d" 2>/dev/null || true
472- ls -la "${d}/bin" 2>/dev/null | head -20 >&2 || true
472+ find "${d}/bin" -mindepth 1 -maxdepth 1 2>/dev/null | head -20 >&2 || true
473473 done
474474 exit 1
475475 fi
You can’t perform that action at this time.
0 commit comments