From 7bb2a5610d7ea383bffe24b7b04331048172ee5c Mon Sep 17 00:00:00 2001 From: a14stoner <59861665+a14stoner@users.noreply.github.com> Date: Sun, 19 Mar 2023 14:52:35 +0100 Subject: [PATCH] Update docker-entrypoint.sh Change check and deletion to a one-liner --- docker-entrypoint.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index b2191b7..63f9c3f 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,10 +1,7 @@ #!/bin/sh if ! which -- "${1}"; then # first arg is not an executable - if [ -e /tmp/.X99-lock ] - then - rm /tmp/.X99-lock -f - fi + if [ -e /tmp/.X99-lock ]; then rm /tmp/.X99-lock -f; fi export DISPLAY=:99 Xvfb "${DISPLAY}" -nolisten unix & exec node /usr/src/app/ "$@"