Commit 4bbf4303 authored by Christophe Massiot's avatar Christophe Massiot

ls -f is not portable (spotted by Benjamin Cohen)

parent ef6fd5fa
......@@ -35,7 +35,7 @@ DIR=$1
cd "$DIR"
NB_CHUNKS=`ls -f *.ts | wc -l`
NB_CHUNKS=`ls -a -1 *.ts | wc -l`
if test $NB_CHUNKS -gt $WANTED_CHUNKS; then
ls -t *.ts | tail -n $(($WANTED_CHUNKS-$NB_CHUNKS)) | cut -d. -f 1 | xargs -I FILE sh -c "rm FILE.ts FILE.aux*"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment