remove empty line bug

This commit is contained in:
6543 2019-09-04 15:52:30 +02:00
parent 74217e16bf
commit 19f30c13e6
Signed by: 6543
GPG Key ID: A1CA74D27FD13271

1
cp_sh
View File

@ -15,6 +15,7 @@ md5_tmp=`mktemp`
freenow=0

cat "$md5" > "$md5_tmp"
sed -i '/^$/d' "$md5_tmp"
cat "$md5_tmp" | while read line; do
file_orig="$(echo $line | cut -c 33- | sed -r -e "s/^[\ ]//g")"
file_size=$(du "$file_orig" | cut -f 1)