remove empty line bug
This commit is contained in:
parent
74217e16bf
commit
19f30c13e6
1
cp_sh
1
cp_sh
@ -15,6 +15,7 @@ md5_tmp=`mktemp`
|
|||||||
freenow=0
|
freenow=0
|
||||||
|
|
||||||
cat "$md5" > "$md5_tmp"
|
cat "$md5" > "$md5_tmp"
|
||||||
|
sed -i '/^$/d' "$md5_tmp"
|
||||||
cat "$md5_tmp" | while read line; do
|
cat "$md5_tmp" | while read line; do
|
||||||
file_orig="$(echo $line | cut -c 33- | sed -r -e "s/^[\ ]//g")"
|
file_orig="$(echo $line | cut -c 33- | sed -r -e "s/^[\ ]//g")"
|
||||||
file_size=$(du "$file_orig" | cut -f 1)
|
file_size=$(du "$file_orig" | cut -f 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user