Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

'==' is not POSIX #1749

Merged
merged 1 commit into from
Dec 4, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions weave
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -1732,7 +1732,7 @@ EOF
;;
connect)
[ $# -gt 0 ] || usage
if [ "$1" == "--replace" ] ; then
if [ "$1" = "--replace" ] ; then
replace="-d replace=true"
shift
fi
Expand Down