From 8b82d200e946ea573a633b607cb19cb890522762 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 2 Jul 2023 00:50:52 +0100 Subject: [PATCH] refactor: simplify entrypoint-user.sh The code changes remove unnecessary lines and simplify the logic in the entrypoint-user.sh script. The tail command is now used directly to follow log files instead of checking for command-line arguments. --- entrypoint-user.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/entrypoint-user.sh b/entrypoint-user.sh index 24104ed..e2d4344 100755 --- a/entrypoint-user.sh +++ b/entrypoint-user.sh @@ -50,12 +50,4 @@ sleep 5 sleep 2 echo -e "Tail log files" echo -e "=================================" - -echo "DOLLAR0 $0" -echo "DOLLAR1 $1" -if [ -n "$1" ]; then - exec "$@" -else - tail -F log/*/*.log -fi -exec "$@" +tail -F log/*/*.log