From bda3f0d48ef7faed3415eabf9dfce9e1ccef6b4f Mon Sep 17 00:00:00 2001 From: Christian Bundy Date: Mon, 28 Mar 2016 20:15:39 -0700 Subject: [PATCH] Ignore blank lines in sftp-users.conf --- entrypoint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint b/entrypoint index a4175cd..aed1b12 100755 --- a/entrypoint +++ b/entrypoint @@ -89,7 +89,7 @@ if [ ! -f "$userConfFinalPath" ]; then # Append mounted config to final config if [ -f "$userConfPath" ]; then - cat "$userConfPath" > "$userConfFinalPath" + cat "$userConfPath" | grep -v -e '^$' > "$userConfFinalPath" fi # Append users from arguments to final config