Skip to content

Commit

Permalink
refactor: simplify entrypoint-user.sh
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dgibbs64 committed Jul 1, 2023
1 parent 890f9ca commit 8b82d20
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions entrypoint-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8b82d20

Please sign in to comment.