Permalink
Browse files

n prev fix

  • Loading branch information...
1 parent 7f84472 commit d2ac79afaac3e14c85479498c12eeea97f925b31 @jeromedecoster jeromedecoster committed Jul 9, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 bin/n
View
@@ -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

0 comments on commit d2ac79a

Please sign in to comment.