check instance file for empty stuff and ignore those line

This commit is contained in:
Matthias Wirth
2020-07-22 22:40:06 +02:00
parent e9d57e3e5d
commit cd7c87e7e2

View File

@@ -137,6 +137,10 @@ fi
if ! diff tar1090.sh /usr/local/share/tar1090/tar1090.sh &>/dev/null; then
changed=yes
while read -r srcdir instance; do
if [[ -z "$srcdir" || -z "$instance" ]]; then
continue
fi
if [[ "$instance" != "tar1090" ]]; then
service="tar1090-$instance"
else
@@ -160,6 +164,9 @@ otherport=""
while read -r srcdir instance
do
if [[ -z "$srcdir" || -z "$instance" ]]; then
continue
fi
TMP=$(mktemp -d -p $ipath)
chmod 755 $TMP