0
0
mirror of https://github.com/tj/n.git synced 2024-11-25 07:39:21 +01:00

Merge pull request #136 from jeromedecoster/prev-fix

n prev fix
This commit is contained in:
TJ Holowaychuk 2013-07-09 09:00:32 -07:00
commit 1f621299bd

1
bin/n
View File

@ -255,6 +255,7 @@ activate() {
activate_previous() {
test -f $VERSIONS_DIR/.prev || abort "no previous versions activated"
local prev=$(cat $VERSIONS_DIR/.prev)
test -d $VERSIONS_DIR/$prev || abort "previous version $prev not installed"
activate $prev
echo
log activate $prev