summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/install-spack9
1 files changed, 7 insertions, 2 deletions
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