summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-04-22 16:00:49 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-04-22 16:00:49 (EDT)
commit1904080c571030ab0d990c88050d8b01c8a7f5d5 (patch)
tree414cdbf89adf326e17702ce30223732eb6106d7a /src
parent9cd1793633c6660e1ecf20f98e5dd61db956b935 (diff)
Warn if files remain in installation destination.
Diffstat (limited to 'src')
-rw-r--r--src/oh-installfiles.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/oh-installfiles.sh b/src/oh-installfiles.sh
index 5598412..c12a8f5 100644
--- a/src/oh-installfiles.sh
+++ b/src/oh-installfiles.sh
@@ -57,5 +57,12 @@ while [ ${#} -gt 0 ]; do
shift
done
+# TODO: This should be part of some kind of warnings/lint framework/script and
+# allow the user to drop to a debug shell before cleanup.
+if [ "$(find dest -type f | wc -l)" -gt 0 ]; then
+ printf 'oh-installfiles: Warning: %s\n' \
+ 'Files remain in installation directory.' >&2
+fi
+
# Reset the IFS.
IFS="${OLDIFS}"