0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-17 12:51:33 -05:00

Ignore blank lines in sftp-users.conf

This commit is contained in:
Christian Bundy 2016-03-28 20:15:39 -07:00
parent 9c63c2d806
commit bda3f0d48e

View file

@ -89,7 +89,7 @@ if [ ! -f "$userConfFinalPath" ]; then
# Append mounted config to final config # Append mounted config to final config
if [ -f "$userConfPath" ]; then if [ -f "$userConfPath" ]; then
cat "$userConfPath" > "$userConfFinalPath" cat "$userConfPath" | grep -v -e '^$' > "$userConfFinalPath"
fi fi
# Append users from arguments to final config # Append users from arguments to final config