From 5427a7d59be7e63dfef41de2e43432a6add1cbb5 Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Fri, 5 Jan 2018 13:14:29 +0100 Subject: [PATCH] Fix if-else syntax and change log message --- entrypoint | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint b/entrypoint index c1fe624..bff3652 100755 --- a/entrypoint +++ b/entrypoint @@ -172,8 +172,8 @@ if [ -d /etc/sftp.d ]; then if [ -x "$f" ]; then log "Running $f ..." $f - elif - log "Will not run $f because the file is not executable. Maybe you should run chmod +x $f outside your container." + else + log "Could not run $f, because it's missing execute permission (+x)." fi done unset f