'==' 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 case "$1" in
-password|-password=*) -password|-password=*)
deprecation_warning $1 "--password" deprecation_warning $1 "--password"
[ "$1" == "-password" ] && shift [ "$1" = "-password" ] && shift
;; ;;
--password) --password)
shift shift
;; ;;
-nickname|-nickname=*) -nickname|-nickname=*)
deprecation_warning $1 "--nickname" deprecation_warning $1 "--nickname"
[ "$1" == "-nickname" ] && shift [ "$1" = "-nickname" ] && shift
;; ;;
--nickname) --nickname)
shift shift
@@ -1628,21 +1628,21 @@ deprecation_warnings() {
;; ;;
-iprange|--iprange|-iprange=*|--iprange=*) -iprange|--iprange|-iprange=*|--iprange=*)
deprecation_warning $1 "--ipalloc-range" deprecation_warning $1 "--ipalloc-range"
[ ${1#--} == "iprange" ] && shift [ ${1#--} = "iprange" ] && shift
;; ;;
--ipalloc-range) --ipalloc-range)
shift shift
;; ;;
-ipsubnet|--ipsubnet|-ipsubnet=*|--ipsubnet=*) -ipsubnet|--ipsubnet|-ipsubnet=*|--ipsubnet=*)
deprecation_warning $1 "--ipalloc-default-subnet" deprecation_warning $1 "--ipalloc-default-subnet"
[ ${1#--} == "ipsubnet" ] && shift [ ${1#--} = "ipsubnet" ] && shift
;; ;;
--ipalloc-default-subnet) --ipalloc-default-subnet)
shift shift
;; ;;
-initpeercount|--initpeercount|-initpeercount=*|--initpeercount=*) -initpeercount|--initpeercount|-initpeercount=*|--initpeercount=*)
deprecation_warning $1 "--init-peer-count" deprecation_warning $1 "--init-peer-count"
[ ${1#--} == "initpeercount" ] && shift [ ${1#--} = "initpeercount" ] && shift
;; ;;
--init-peer-count) --init-peer-count)
shift shift
@@ -1732,7 +1732,7 @@ EOF
;; ;;
connect) connect)
[ $# -gt 0 ] || usage [ $# -gt 0 ] || usage
if [ "$1" == "--replace" ] ; then if [ "$1" = "--replace" ] ; then
replace="-d replace=true" replace="-d replace=true"
shift shift
fi fi