Last change
on this file since 36966 was 35222, checked in by davidb, 3 years ago |
Added in 'find' phase to remove zero length M4A files that resulted from the download stage
|
-
Property svn:executable
set to
*
|
File size:
306 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | if [ ! -d import ] ; then
|
---|
4 | echo "Creating directory: import"
|
---|
5 | mkdir import
|
---|
6 | fi
|
---|
7 |
|
---|
8 | rsync -pav prepare/audio/* import/.
|
---|
9 |
|
---|
10 | echo ""
|
---|
11 | echo "Removing zero sized files ..."
|
---|
12 |
|
---|
13 | find import -type f -name "*.m4a" -size 0 -exec bash -c 'f={} ; r=${f%.*} ; ls -l $r.* ; /bin/rm $r.*' \;
|
---|
14 |
|
---|
15 | echo "... done"
|
---|
16 |
|
---|
17 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.