Software /
code /
prosody
Comparison
configure @ 9422:b7aad88c537b
configure: Add shellcheck directives to suppress warnings on harmless lines
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 01 Oct 2018 15:33:10 +0100 |
parent | 9421:03b50f5bd8cd |
child | 9424:3409d617dcd3 |
comparison
equal
deleted
inserted
replaced
9421:03b50f5bd8cd | 9422:b7aad88c537b |
---|---|
105 echo "configure failed." | 105 echo "configure failed." |
106 echo | 106 echo |
107 exit 1 | 107 exit 1 |
108 } | 108 } |
109 | 109 |
110 case `echo -n x` in | 110 # shellcheck disable=SC2039 |
111 case $(echo -n x) in | |
111 -n*) echo_n_flag='';; | 112 -n*) echo_n_flag='';; |
112 *) echo_n_flag='-n';; | 113 *) echo_n_flag='-n';; |
113 esac | 114 esac |
114 | 115 |
115 echo_n() { | 116 echo_n() { |
128 key=$(echo "$1" | sed 's/=.*//') | 129 key=$(echo "$1" | sed 's/=.*//') |
129 if echo "$value" | grep "~" >/dev/null 2>/dev/null | 130 if echo "$value" | grep "~" >/dev/null 2>/dev/null |
130 then | 131 then |
131 echo | 132 echo |
132 echo '*WARNING*: the "~" sign is not expanded in flags.' | 133 echo '*WARNING*: the "~" sign is not expanded in flags.' |
134 # shellcheck disable=SC2016 | |
133 echo 'If you mean the home directory, use $HOME instead.' | 135 echo 'If you mean the home directory, use $HOME instead.' |
134 echo | 136 echo |
135 fi | 137 fi |
136 case "$key" in | 138 case "$key" in |
137 --help) | 139 --help) |