[Tests] avoid using shopt in zsh

Jordan Harband 2018-11-26 11:18:11 -08:00
parent ad1110ef1a
commit c1150c41ab
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
1 changed files with 8 additions and 2 deletions

View File

@ -19,8 +19,14 @@ WGET_EXPECTED_INFO="$(which wget)"
cleanup
# 2. test aliased wget
shopt -s expand_aliases
# enable expand_aliases to make alias working in interactive shell
# enable expand_aliases/aliases to make alias work in interactive shell
if nvm_has shopt; then
shopt -s expand_aliases
elif nvm_has setopt; then
setopt aliases
fi
alias wget="wget -V"
WGET_COMMAND_INFO="$(nvm_command_info wget)"
WGET_EXPECTED_INFO="$(which wget) (wget -V)"