run_{rp,application}_banner(): Fix unassigned variables.

This commit fixes the following two instances of referenced but not assigned
variables:

```
In testssl.sh line 1159:
               rp_banners="$rp_bannersline"
                           ^-- SC2154: rp_bannersline is referenced but not assigned.

In testssl.sh line 1193:
               app_banners="$app_bannersline"
                            ^-- SC2154: app_bannersline is referenced but not assigned.
```

Found by ShellCheck.
This commit is contained in:
Karsten Weiss 2016-09-14 12:11:51 +02:00
parent 10b3e7db55
commit beae0ce195
1 changed files with 2 additions and 2 deletions

View File

@ -1156,7 +1156,7 @@ run_rp_banner() {
first=false first=false
fi fi
emphasize_stuff_in_headers "$line" emphasize_stuff_in_headers "$line"
rp_banners="$rp_bannersline" rp_banners="${rp_banners}${line}"
done < $TMPFILE done < $TMPFILE
fileout "rp_header" "INFO" "Reverse proxy banner(s) found: $rp_banners" fileout "rp_header" "INFO" "Reverse proxy banner(s) found: $rp_banners"
fi fi
@ -1190,7 +1190,7 @@ run_application_banner() {
first=false first=false
fi fi
emphasize_stuff_in_headers "$line" emphasize_stuff_in_headers "$line"
app_banners="$app_bannersline" app_banners="${app_banners}${line}"
done done
fileout "app_banner" "WARN" "Application Banners found: $app_banners" fileout "app_banner" "WARN" "Application Banners found: $app_banners"
fi fi