mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 17:24:50 +01:00
Merge of 23645: use == instead of =.
This commit is contained in:
parent
30f9c06e0a
commit
411efa92f5
1 changed files with 3 additions and 3 deletions
|
@ -24,16 +24,16 @@ local ZFTP_VERBOSE=${ZFTP_VERBOSE//0}
|
||||||
|
|
||||||
if [[ -z $ZFTP_HOST ]]; then
|
if [[ -z $ZFTP_HOST ]]; then
|
||||||
zfopen || return 1
|
zfopen || return 1
|
||||||
[[ $1 = *d* ]] || do_close=1
|
[[ $1 == *d* ]] || do_close=1
|
||||||
elif zftp test 2>/dev/null; then
|
elif zftp test 2>/dev/null; then
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
zfopen || return 1
|
zfopen || return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $1 = *n* ]]; then
|
if [[ $1 == *n* ]]; then
|
||||||
return 0
|
return 0
|
||||||
elif [[ -n $lastloc && $ZFTP_HOST = ${lastloc%%:*} ]]; then
|
elif [[ -n $lastloc && $ZFTP_HOST == ${lastloc%%:*} ]]; then
|
||||||
# don't print directory since we're just going back where we were.
|
# don't print directory since we're just going back where we were.
|
||||||
zfcd ${lastloc#*:} >& /dev/null
|
zfcd ${lastloc#*:} >& /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue