From 62080df10f4255600453c321ad00623ff1f711be Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sun, 20 Oct 2013 00:47:51 -0500 Subject: [PATCH] Avoid caching flag if no usable crc32 algo was found --- flag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flag b/flag index 68cb2b1..587f4fe 100755 --- a/flag +++ b/flag @@ -78,7 +78,7 @@ flagcache(){ if [ -z "${flag_hex}" ] then flag_hex="$(hash_string "${myhost}")" - echo -e "${myhost}\t${flag_hex}" >> "${cache}" + [ "${crc32_bin}" ] && echo -e "${myhost}\t${flag_hex}" >> "${cache}" fi } -- 2.42.0