From b224d249bb43d858c7b3c825e7433ee5892df3a2 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Mon, 25 Mar 2013 11:30:11 -0700 Subject: Print files that are in the way of install. --- bin/install-spack | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/install-spack b/bin/install-spack index 9d35bbf0e4..38ac08976d 100755 --- a/bin/install-spack +++ b/bin/install-spack @@ -41,8 +41,13 @@ prefix = os.getcwd() if os.path.exists(".git"): error("There already seems to be a git repository here.") -if os.listdir("."): - error("There is already something in this directory.") + +files_in_the_way = os.listdir(".") +if files_in_the_way: + msg("There are already some files in this directory:") + for file in files_in_the_way: + print file + error("Delete these files before installing spack.") msg("This script will install:") print " %s/bin/spack" % prefix -- cgit v1.2.3-70-g09d2