Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #136 from jeromedecoster/prev-fix

n prev fix
  • Loading branch information...
commit 1f621299bd714320a41993357de7ac665d75fe6c 2 parents 6b4cf8e + d2ac79a
@tj authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  bin/n
View
1  bin/n
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.