summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-01-28 06:27:52 +0000
committerKatolaZ <katolaz@freaknet.org>2019-01-28 06:27:52 +0000
commit409c0500337ea69259999901b613798e50c991b6 (patch)
tree8d50ed39b0d4325c46d1e4580c90b25dbbbdca44
parent29b88760a160dc5db087a6dd973211c20508ba54 (diff)
minor fix
-rwxr-xr-xphrollo5
1 files changed, 4 insertions, 1 deletions
diff --git a/phrollo b/phrollo
index 55fb5d8..25d5ca1 100755
--- a/phrollo
+++ b/phrollo
@@ -7,7 +7,10 @@ IFS=' '
while read -r D T S H P SH; do
NSH="$(printf "$S\r\n" | nc $H $P | shasum -a 256 | cut -d " " -f 1)"
[ $? -eq 0 ] &&
- [ "${SH}" != "${NSH}" ] && {D="$(date +%Y%m%d)"; SH="${NSH}"}
+ [ "${SH}" != "${NSH}" ] && {
+ D="$(date +%Y%m%d)"
+ SH="${NSH}"
+ }
printf "%s\t%s\t%s\t%s\t%s\t%s\n" "$D" "$T" "$S" "$H" "$P" "$SH" | tee /dev/stderr
done < "${FILEIN}" | sort -rnk1 -k2 | \
sed -r "s/^([0-9][0-9]*) /1(\1) /g;s/ [a-f0-9][a-f0-9]*$//g" |\