You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
510 B

#!/bin/sh
source ../common.sh
# Version to revert nvm to
revert_version=v0.32.0
# Load zsh-nvm
load_zsh_nvm
# Check current version isn't revert version
[[ "v$(nvm --version)" != "$revert_version" ]] || die "Revert version ($revert_version) already installed"
# Fake revert file
echo "$revert_version" > "$ZSH_NVM_DIR/previous_version"
# Attempt to revert
nvm revert
# Check current version is now revert version
[[ "v$(nvm --version)" == "$revert_version" ]] || die "Couldn't revert to $revert_version"