diff options
Diffstat (limited to 'Master/tlpkg/bin')
-rwxr-xr-x | Master/tlpkg/bin/tl-update-bindir | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Master/tlpkg/bin/tl-update-bindir b/Master/tlpkg/bin/tl-update-bindir index 98a1e46b86f..d5f016ba129 100755 --- a/Master/tlpkg/bin/tl-update-bindir +++ b/Master/tlpkg/bin/tl-update-bindir @@ -205,7 +205,7 @@ for tlname in $tlnames; do fi $msg "installing from $bin_loc to $destdir via $tmpdir" - ls -l "$bin_loc" + ls -ld "$bin_loc" # if we were given a tar file, unpack it. if test -f "$bin_loc"; then @@ -229,8 +229,9 @@ for tlname in $tlnames; do find "$srcdir" -name .svn | xargs rm -rf # may need to cd into a subdirectory, depending on how the tar was made. - test "`ls $srcdir`" != bin || srcdir=$srcdir/bin - test `ls $srcdir | wc -l` != 1 || srcdir=$srcdir/* + while test `ls $srcdir | wc -l` = 1; do + srcdir=$srcdir/* + done # destdir is what is in the repo now, srcdir has the new binaries. (cd $destdir && ls) >$tmpdir/now |