Fix change of warning logic (no protos offered)

After changing the logic from $PROTOS_OFFERED
contaning each protocol detected to $PROTOS_OFFERED
contaning each protocol + colon yes or no there
wasn't a change for the sanity check that no protocols
are offered. This fixes it.
This commit is contained in:
Dirk 2017-11-24 15:15:50 +01:00
parent e0a5050553
commit 778a7cc12d
1 changed files with 1 additions and 1 deletions

View File

@ -4595,7 +4595,7 @@ run_protocols() {
;; # no local support
esac
debugme echo "PROTOS_OFFERED: $PROTOS_OFFERED"
if [[ -z "$PROTOS_OFFERED" ]]; then
if [[ ! "$PROTOS_OFFERED" =~ yes ]]; then
outln
ignore_no_or_lame "You should not proceed as no protocol was detected. If you still really really want to, say \"YES\"" "YES"
[[ $? -ne 0 ]] && exit -2