summaryrefslogtreecommitdiff
path: root/bin/install-spack
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2013-03-25 11:30:11 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2013-03-25 11:30:11 -0700
commitb224d249bb43d858c7b3c825e7433ee5892df3a2 (patch)
tree87f2bff7f2b6b447f9e2e9b758ab322051074f83 /bin/install-spack
parent3229e47e5d658042b5af258307ce0a6ec8755ae7 (diff)
downloadspack-b224d249bb43d858c7b3c825e7433ee5892df3a2.tar.gz
spack-b224d249bb43d858c7b3c825e7433ee5892df3a2.tar.bz2
spack-b224d249bb43d858c7b3c825e7433ee5892df3a2.tar.xz
spack-b224d249bb43d858c7b3c825e7433ee5892df3a2.zip
Print files that are in the way of install.
Diffstat (limited to 'bin/install-spack')
-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