__netbox_uwsgi: fix if only --bind-to given
If the here-document is empty because no file could be found, an empty line will be read. The new line of code will skip in those cases.
This commit is contained in:
parent
c9e4e8d7dc
commit
0afc7136f8
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,8 @@ EOF
|
||||||
|
|
||||||
# special protocol to bind
|
# special protocol to bind
|
||||||
while read -r param; do
|
while read -r param; do
|
||||||
|
if [ -z "$param" ]; then continue; fi # ignore empty lines from the here-doc
|
||||||
|
|
||||||
multi_options "$(basename "$param" | awk -F'-' '{print $1}')-socket" "$param"
|
multi_options "$(basename "$param" | awk -F'-' '{print $1}')-socket" "$param"
|
||||||
socket_changes="yes"
|
socket_changes="yes"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue