diff options
author | KatolaZ <katolaz@freaknet.org> | 2019-02-01 15:03:10 +0000 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2019-02-01 15:03:10 +0000 |
commit | 5dcc2807cd83e47564781f2d5598aa5da18cb835 (patch) | |
tree | a83286e460d42da32c0bb99a9f45b266ab325d46 | |
parent | e9a84ca044c10e9676a351820d5719b2d5f51554 (diff) |
-rwxr-xr-x | phrollo | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5,7 +5,7 @@ FILEIN="${1:-/dev/stdin}" 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)" + NSH="$(printf "%s\r\n" "$S" | nc "$H" "$P" | shasum -a 256 | cut -d " " -f 1)" [ "${SH}" != "${NSH}" ] && { D="$(date +%Y%m%d)" SH="${NSH}" |