summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-02-01 15:03:10 +0000
committerKatolaZ <katolaz@freaknet.org>2019-02-01 15:03:10 +0000
commit5dcc2807cd83e47564781f2d5598aa5da18cb835 (patch)
treea83286e460d42da32c0bb99a9f45b266ab325d46
parente9a84ca044c10e9676a351820d5719b2d5f51554 (diff)
fix a printfHEADmaster
-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}"