From 19f30c13e65c3407018498001e5ab6c0ef098482 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 4 Sep 2019 15:52:30 +0200 Subject: [PATCH] remove empty line bug --- cp_sh | 1 + 1 file changed, 1 insertion(+) diff --git a/cp_sh b/cp_sh index d316338..99d9937 100755 --- a/cp_sh +++ b/cp_sh @@ -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)