0
0
mirror of https://github.com/tj/n.git synced 2024-11-28 21:22:03 +01:00

Merge pull request #137 from jeromedecoster/no-installed-version

abort gracefully if no installed version
This commit is contained in:
TJ Holowaychuk 2013-07-09 10:46:38 -07:00
commit 3ea021043f

1
bin/n
View File

@ -409,6 +409,7 @@ display_remote_versions() {
# Handle arguments
if test $# -eq 0; then
test "$(ls -l $VERSIONS_DIR | grep ^d)" || abort "no installed version"
display_versions
else
while test $# -ne 0; do