[Fix] Correct nvm.sh indent

Peter Dave Hello 2018-01-26 11:30:57 +08:00 committed by Jordan Harband
parent 71032cfaa1
commit a23f7169a6
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
1 changed files with 12 additions and 12 deletions

24
nvm.sh
View File

@ -476,12 +476,12 @@ nvm_remote_versions() {
case "${PATTERN}" in case "${PATTERN}" in
"${NVM_IOJS_PREFIX}" | "io.js") "${NVM_IOJS_PREFIX}" | "io.js")
NVM_FLAVOR="${NVM_IOJS_PREFIX}" NVM_FLAVOR="${NVM_IOJS_PREFIX}"
unset PATTERN unset PATTERN
;; ;;
"${NVM_NODE_PREFIX}") "${NVM_NODE_PREFIX}")
NVM_FLAVOR="${NVM_NODE_PREFIX}" NVM_FLAVOR="${NVM_NODE_PREFIX}"
unset PATTERN unset PATTERN
;; ;;
esac esac
@ -1584,9 +1584,9 @@ nvm_get_arch() {
HOST_ARCH=$(isainfo -n) HOST_ARCH=$(isainfo -n)
fi fi
elif [ "_$NVM_OS" = "_aix" ]; then elif [ "_$NVM_OS" = "_aix" ]; then
HOST_ARCH=ppc64 HOST_ARCH=ppc64
else else
HOST_ARCH="$(command uname -m)" HOST_ARCH="$(command uname -m)"
fi fi
local NVM_ARCH local NVM_ARCH
@ -1646,7 +1646,7 @@ nvm_ensure_default_set() {
} }
nvm_is_merged_node_version() { nvm_is_merged_node_version() {
nvm_version_greater_than_or_equal_to "$1" v4.0.0 nvm_version_greater_than_or_equal_to "$1" v4.0.0
} }
nvm_get_mirror() { nvm_get_mirror() {
@ -1761,7 +1761,7 @@ nvm_get_download_slug() {
NVM_ARCH="$(nvm_get_arch)" NVM_ARCH="$(nvm_get_arch)"
if ! nvm_is_merged_node_version "${VERSION}"; then if ! nvm_is_merged_node_version "${VERSION}"; then
if [ "${NVM_ARCH}" = 'armv6l' ] || [ "${NVM_ARCH}" = 'armv7l' ]; then if [ "${NVM_ARCH}" = 'armv6l' ] || [ "${NVM_ARCH}" = 'armv7l' ]; then
NVM_ARCH="arm-pi" NVM_ARCH="arm-pi"
fi fi
fi fi
@ -2664,9 +2664,9 @@ nvm() {
nvm_err "Currently, there is no binary for $NVM_OS" nvm_err "Currently, there is no binary for $NVM_OS"
elif [ "_$NVM_OS" = "_sunos" ]; then elif [ "_$NVM_OS" = "_sunos" ]; then
# Not all node/io.js versions have a Solaris binary # Not all node/io.js versions have a Solaris binary
if ! nvm_has_solaris_binary "$VERSION"; then if ! nvm_has_solaris_binary "$VERSION"; then
nobinary=1 nobinary=1
nvm_err "Currently, there is no binary of version $VERSION for $NVM_OS" nvm_err "Currently, there is no binary of version $VERSION for $NVM_OS"
fi fi
fi fi
@ -3510,7 +3510,7 @@ nvm_auto() {
nvm install >/dev/null nvm install >/dev/null
fi fi
elif [ "_$NVM_MODE" = '_use' ]; then elif [ "_$NVM_MODE" = '_use' ]; then
VERSION="$(nvm_resolve_local_alias default 2>/dev/null || nvm_echo)" VERSION="$(nvm_resolve_local_alias default 2>/dev/null || nvm_echo)"
if [ -n "$VERSION" ]; then if [ -n "$VERSION" ]; then
nvm use --silent "$VERSION" >/dev/null nvm use --silent "$VERSION" >/dev/null
elif nvm_rc_version >/dev/null 2>&1; then elif nvm_rc_version >/dev/null 2>&1; then