'==' is not POSIX

This commit is contained in:
Matthias Radestock committed 2015-12-02 14:20:29 +00:00
1 parent 74fdf6beec
commit 4e70fb7f9d
1 file changed
+6 -6
+6 -6
View File
@@ -1611,14 +1611,14 @@ deprecation_warnings() {
case "$1" in
-password|-password=*)
deprecation_warning $1 "--password"
[ "$1" == "-password" ] && shift
[ "$1" = "-password" ] && shift
;;
--password)
shift
;;
-nickname|-nickname=*)
deprecation_warning $1 "--nickname"
[ "$1" == "-nickname" ] && shift
[ "$1" = "-nickname" ] && shift
;;
--nickname)
shift
@@ -1628,21 +1628,21 @@ deprecation_warnings() {
;;
-iprange|--iprange|-iprange=*|--iprange=*)
deprecation_warning $1 "--ipalloc-range"
[ ${1#--} == "iprange" ] && shift
[ ${1#--} = "iprange" ] && shift
;;
--ipalloc-range)
shift
;;
-ipsubnet|--ipsubnet|-ipsubnet=*|--ipsubnet=*)
deprecation_warning $1 "--ipalloc-default-subnet"
[ ${1#--} == "ipsubnet" ] && shift
[ ${1#--} = "ipsubnet" ] && shift
;;
--ipalloc-default-subnet)
shift
;;
-initpeercount|--initpeercount|-initpeercount=*|--initpeercount=*)
deprecation_warning $1 "--init-peer-count"
[ ${1#--} == "initpeercount" ] && shift
[ ${1#--} = "initpeercount" ] && shift
;;
--init-peer-count)
shift
@@ -1732,7 +1732,7 @@ EOF
;;
connect)
[ $# -gt 0 ] || usage
if [ "$1" == "--replace" ] ; then
if [ "$1" = "--replace" ] ; then
replace="-d replace=true"
shift
fi