Introduction
Introduction Statistics Contact Development Disclaimer Help
Do not write to output in case of failed sha512sum. - annna - Annna the nice fr…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 49aa535e6aee10a61a54a6dd2b04aa0257b8722f
parent 7f7cfb2f35485b7e592eca9429dd580f956e277f
Author: Annna Robert-Houdin <[email protected]>
Date: Tue, 19 May 2020 19:19:41 +0200
Do not write to output in case of failed sha512sum.
A failed command means file not found.
Diffstat:
M lsmemes | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lsmemes b/lsmemes
@@ -10,6 +10,8 @@ do
memeuri="$(printf "%s\n" "${meme}" | cut -d' ' -f 2)"
memefile="$(basename "${memeuri}")"
hash="$(sha512sum ${MEMEDIR}/${memefile} | cut -d' ' -f 1)"
+ [ -z "${hash}" ] && continue
+
printf "%s %s %s\n" $tag $meme $hash
done < $MEMEFILE
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.