Software /
code /
prosody
Comparison
configure @ 9427:460f08008521
configure: Suppress warning about '~' [SC2088]
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 01 Oct 2018 16:23:57 +0100 |
parent | 9426:e290a60f1f09 |
child | 9657:bd75edf0e0e2 |
child | 9998:c8646f65767a |
comparison
equal
deleted
inserted
replaced
9426:e290a60f1f09 | 9427:460f08008521 |
---|---|
125 | 125 |
126 while [ -n "$1" ] | 126 while [ -n "$1" ] |
127 do | 127 do |
128 value=$(echo "$1" | sed 's/[^=]*.\(.*\)/\1/') | 128 value=$(echo "$1" | sed 's/[^=]*.\(.*\)/\1/') |
129 key=$(echo "$1" | sed 's/=.*//') | 129 key=$(echo "$1" | sed 's/=.*//') |
130 # shellcheck disable=SC2088 | |
130 if echo "$value" | grep "~" >/dev/null 2>/dev/null | 131 if echo "$value" | grep "~" >/dev/null 2>/dev/null |
131 then | 132 then |
132 echo | 133 echo |
133 echo '*WARNING*: the "~" sign is not expanded in flags.' | 134 echo '*WARNING*: the "~" sign is not expanded in flags.' |
134 # shellcheck disable=SC2016 | 135 # shellcheck disable=SC2016 |