diff options
Diffstat (limited to 'Master/tlpkg/bin/tl-update-bindir')
-rwxr-xr-x | Master/tlpkg/bin/tl-update-bindir | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Master/tlpkg/bin/tl-update-bindir b/Master/tlpkg/bin/tl-update-bindir index c242f68fc2e..85b9d1b7770 100755 --- a/Master/tlpkg/bin/tl-update-bindir +++ b/Master/tlpkg/bin/tl-update-bindir @@ -162,12 +162,8 @@ for tlname in $tlnames; do fi # may need to cd into a subdirectory, depending on how the tar was made. - if test `ls $srcdir` = bin; then - srcdir=$srcdir/bin - fi - if test `ls $srcdir | wc -l` = 1; then - srcdir=$srcdir/* - fi + test "`ls $srcdir`" != bin || srcdir=$srcdir/bin + test `ls $srcdir | wc -l` != 1 || srcdir=$srcdir/* # state of things. srcdir is full of the new binaries. (cd $destdir && ls) >$tmpdir/now |