Skip to content

Commit 31d30ef

Browse files
Change ls to find
1 parent ed29267 commit 31d30ef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)