summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/ctan2tl
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/bin/ctan2tl')
-rwxr-xr-xMaster/tlpkg/bin/ctan2tl8
1 files changed, 5 insertions, 3 deletions
diff --git a/Master/tlpkg/bin/ctan2tl b/Master/tlpkg/bin/ctan2tl
index 4eba4477b8e..8c7a29d0068 100755
--- a/Master/tlpkg/bin/ctan2tl
+++ b/Master/tlpkg/bin/ctan2tl
@@ -128,10 +128,12 @@ ctan2tds --ctan-dir=$ctan_dir $pkg || exit 1
cd $cooked || exit 1
printf "\n\f cooked\n"
find $pkg -name TDS_READY -exec rm '{}' \; # remove sentinel file
-find -depth -type d | xargs rmdir 2>/dev/null # remove empty directories
+find $pkg -depth -type d | xargs rmdir 2>/dev/null # remove empty directories
-if test -n "`find -name \*\ \*`"; then
- echo "$0: cooked hierarchy contains files with spaces, goodbye." >&2
+spacenames="`find $pkg -name \*\ \*`"
+if test -n "$spacenames"; then
+ echo "$0: cooked hierarchy contains files with spaces, goodbye:" >&2
+ echo "$spacenames" >&2
exit 1
fi