From 433e88c13222a0e05a1c4e6fdc1ea916316fa03d Mon Sep 17 00:00:00 2001 From: Ray Culbertson Date: Wed, 12 Apr 2023 21:49:52 -0500 Subject: [PATCH] add warning when setting up an empty directory --- bin/museSetup.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bin/museSetup.sh b/bin/museSetup.sh index 504eca6..ea8f960 100755 --- a/bin/museSetup.sh +++ b/bin/museSetup.sh @@ -672,6 +672,16 @@ if [ "$QWARN" ]; then echo " inconsistent builds and memory errors." fi +# +# check if we setup an empty directory, if so give a warning +# +if [[ -z "$MUSE_REPOS" && -z "$MUSE_BACKING" ]]; then + echo + echo "Note: your working dir has no buildable or linked repos." + echo "This is allowed, but also might indicate a mistake.." + echo +fi + # # if build area is on cvmfs and contains a setup.sh script, typically written