From d2ac79afaac3e14c85479498c12eeea97f925b31 Mon Sep 17 00:00:00 2001 From: "jerome@work" Date: Tue, 9 Jul 2013 17:40:58 +0200 Subject: [PATCH] n prev fix --- bin/n | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/n b/bin/n index c855266..1bb013d 100755 --- a/bin/n +++ b/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