summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xphrollo2
1 files changed, 1 insertions, 1 deletions
diff --git a/phrollo b/phrollo
index 0582b18..e5afa13 100755
--- a/phrollo
+++ b/phrollo
@@ -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}"