From cd7c87e7e29bb745742cacbfc015b5f02ac5a216 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Wed, 22 Jul 2020 22:40:06 +0200 Subject: [PATCH] check instance file for empty stuff and ignore those line --- install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install.sh b/install.sh index 5cbf086..f9c3f7e 100755 --- a/install.sh +++ b/install.sh @@ -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