From caafa6aa66777727b7a120b583e7ca8b23c3ff28 Mon Sep 17 00:00:00 2001 From: Lev Date: Tue, 9 Nov 2021 12:49:39 +0300 Subject: [PATCH] refactor(frappe-nginx): Use `find` instead of `ls` --- build/frappe-nginx/docker-entrypoint.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build/frappe-nginx/docker-entrypoint.sh b/build/frappe-nginx/docker-entrypoint.sh index 0be9232e..94277fc3 100755 --- a/build/frappe-nginx/docker-entrypoint.sh +++ b/build/frappe-nginx/docker-entrypoint.sh @@ -8,8 +8,7 @@ rsync -a --delete /var/www/html/assets/* /assets /rsync -# shellcheck disable=SC2012 -touch /var/www/html/sites/.build -r "$(ls -td /assets/* | head -n 1)" +touch /var/www/html/sites/.build -r "$(find /assets -maxdepth 1 -name "*.*" | head -n 1)" [[ -z "${FRAPPE_PY}" ]] && FRAPPE_PY='0.0.0.0'