Skip to content

Commit 8b82d20

Browse files
committed
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.
1 parent 890f9ca commit 8b82d20

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

entrypoint-user.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,4 @@ sleep 5
5050
sleep 2
5151
echo -e "Tail log files"
5252
echo -e "================================="
53-
54-
echo "DOLLAR0 $0"
55-
echo "DOLLAR1 $1"
56-
if [ -n "$1" ]; then
57-
exec "$@"
58-
else
59-
tail -F log/*/*.log
60-
fi
61-
exec "$@"
53+
tail -F log/*/*.log

0 commit comments

Comments
 (0)