From 1904080c571030ab0d990c88050d8b01c8a7f5d5 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 22 Apr 2012 16:00:49 -0400 Subject: Warn if files remain in installation destination. --- 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}" -- cgit v0.9.1