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:
parent
9c63c2d806
commit
bda3f0d48e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue